def sumDigits(digits):
    """Return the sum of all the digits in 'digits'."""
    if type(digits) == type(""):
        s = digits
    else:
        s = str(digits)
    total = 0
    for c in s:
        total += int(c)
    return total