4) Write a program in python to check the given number is how many digit number using if... elif... else statement...
Answers
Answered by
4
Question :
Write a program in python to check the given number is how many digit number using if... elif... else statement.
Answer:
Here is the answer friend:
CODING:
num=input('Enter a number:')
a=['ZERO','ONE','TWO','THREE','FOUR','FIVE','SIX','SEVEN','EIGHT','NINE','TEN']
for i in num:
n=int(i)
print(a[n],end=' ')
HOPE IT HELPS U FRIEND :)
Similar questions