Python Program to Count the Number of Digits Present In a Number (Using inbuilt methods)

bookmark

num = 123456
print(len(str(num)))

 

Output

6