def classesByCredits (theDictionary, credits):
    """Lists the courses worth a specific credit value.

    :param dict[str, int] theDictionary: The student's class information
        with the class as the key and the number or credits as the value
    :param int credits: The credit value by which classes are queried
    :return: The courses worth the value of credits
    :rtype: list
    """
    classes = []

    for i in theDictionary:
        if theDictionary[i] == credits:
            classes.append(i)

    return classes