def matchingByName (theDictionary, firstLetter):
    """Identifies students a name starting with firstLetter.

    Assumes student names are capitalized.

    :param dict[str, str] theDictionary:
        key: locker number / value: student name or "open"
    :param str firstLetter:
        The target letter by which to identify students. Currently does
        not check for only a single letter.
    :return:
        The students with name starting with firstLetter
    :rtype: list[str]
    """
    studentsByName = []
    firstLetter = firstLetter.upper()

    for key in theDictionary:
        if theDictionary[key][0] == firstLetter:
            studentsByName.append(theDictionary[key])

    return studentsByName