Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (7 sloc) 199 Bytes
__author__ = 'Avinash'
input_num = int(input("Enter any number: "))
count = 0
while input_num > 0:
count += 1
input_num //= 10
print("The number of digits in the given number are:", count)