Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count the total number of digits in a number pthon

number = str(input('enter number'))
i = 0
while i in range(len(number)):
    i +=1
print(f'Number of digits: {i}')
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #count #total #number #digits #number #pthon
ADD COMMENT
Topic
Name
3+4 =