Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for python

num = input("Pls Enter your Nikname (alphabetnumbric)</>:       ");
count=0
for n in num :
    if n>="0" and n<="9":
        count+=1
print ("number of digit in text :",count)
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
5+9 =