def totalCredits (theDictionary):
    """Calculates the total credits student is taking this semester.

    :param dict[str, int] theDictionary: The student's class information
        with the class as the key and the number or credits as the value
    :return: The total credits
    :rtype: int
    """
    total = 0  # = sum (theDictionary.values ())

    for i in theDictionary:
        total += theDictionary[i]

    return total