Question: PS; Python Write a Dictionary that converts English numbers to French, one through five. (That would be un, deux, trois, quatre, cinq.) Ask for user

PS; Python

Write a Dictionary that converts English numbers to French, one through five. (That would be un, deux, trois, quatre, cinq.) Ask for user input for an English number, and output the French one. Print a nice error message if the text entered isn't in the dictionary.

sample output

Please enter a number, spelled in English, from one to five: like like is not in this dictionary. Please try again.
Please enter a number, spelled in English, from one to five: two two in French is deux

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!