WAP to enter to enter a digit from 1 to 5 and print it in words (eg: if user enters 4 program should print "Four" )
Answers
Answered by
0
i = int(input("Enter the number: "))
dict1 = {1:"One", 2:"Two",3:"Three",4:"Four", 5:"Five"}
print(dict1[i])
I have written the program in python
Similar questions