I am trying to count the number of digits of an input. However, whenever I input 10 or 11 or any two digit number, the output is 325.
10
11
325
num = int(input()) count = 0 while num > 0: count += 1 num = num // 10 print(count)