1n=int(input("Enter number:"))
2count=0
3while(n>0):
4 count=count+1
5 n=n//10
6print("The number of digits in the number are:",count)
1n = 1234 //Any Random Number
2digits = len(str(n)) //Saves the number of digits of n into the variable digits