Computer Science, asked by deekshanshusheel, 1 month ago

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 arcnagpal1234
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