Determine the total number of digits in the integer (`n>=0`) given as input to the function. For example, 9 is a single digit, 66 has 2 digits and 128685 has 6 digits. Be careful to avoid overflows/underflows.
All inputs will be valid.
def digits(n):
    print(n)
    z=[int(x)  for x in str(n)]
    # your code here
    print(z)
    return len(z)

def digits(n):
    print(n)
    z=[int(x)  for x in str(n)]
    # your code here
    print(z)
    return len(z)
