Python Program:

- To print total number of digits in a number

Example:

User Input: 15

Output:
Total number of digits : 2

num=int(input("Enter your number : "))
count = 0
while num!=0 :
  num=int(num/10)
  count+=1
print("Total number of digits :",count)

Output:

  Enter Your number : 11432
  Total number of digits : 5
Program
number

Main Logic :

while num!=0 :
  num=int(num/10)
  count+=1

Divide the number by 10 while your number becomes 0[ZERO]
& Just count how many times it divides the number to make it ZERO

Concept

Coming Soon !

Quick
Tutorial

Quote

The best preparation for good work tomorrow is to do good work today.