Count number in python

n=int (input (“enter number :”))
count=0
while(n>0):
count=count +1
n=n//10
print(“the number of digits in the number are :”,count)

2 Likes

@prashanshamurty99
correct, keep it up.