Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

python count number of digits

num = 3452
count = 0

while num != 0:
    num //= 10
    count += 1

print("Number of digits: " + str(count))
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #count #number #digits
ADD COMMENT
Topic
Name
7+4 =