# Please enter a string that shows how many digits?

# Please enter a string that shows how many digits? 
value = input ( "Please enter a character:")
PEL = len (value) # input to know how many characters len
NUM = 0
v = 0
the while True:
Val = [NUM] # value of each character is what

flag = val.isdigit () # boolean determining whether the digital
iF In Flag:
V + =. 1
Print (Val)
iF NUM == PEL -. 1:
BREAK
NUM = +. 1
Print ( 'a total of% d digits'% (v,) )

Guess you like

Origin www.cnblogs.com/yeers/p/11542159.html