Computer Science, asked by pranav15075, 6 months ago

Write a program to input the number from 1-10 and display it in word (E.g. if we enter “1” then it should display “one” and so on)​

Answers

Answered by gaganadithyareddy9
1

Answer:

Hey! Here is your python code...

nums = {'1' : 'one', '2' : 'two', '3' : 'Three', '4' : 'Four', '5' : 'Five', '6' : 'six', '7' : 'Seven', '8' : 'Eight', '9' : 'Nine'}

x = int(input("Enter a number: "))

print(nums.get(str(x)))

# HOPE THIS HELPS!!

Similar questions