Question: 2. Write the file name, your name, email address and purpose of the program at the top of your source code in a comment.
2. Write the file name, your name, email address and purpose of the program at the top of your source code in a comment. Add comments as appropriate. Be sure that your program output is neatly presented to the user. 3. Write a program that does the following: a. Creates a dictionary with common phrases in language a as the key and the translation in another language 2 as the values. b. Display a list of the phrases of language 1 to the user. Hint: use the keys() method of the dictionary class. c. Ask the user to type in a phrase to translate. d. Display the translation of that phrase to the user. 4. Program should look something like this: Python 2.7.15 Shell File Edit Shell Debug Options Window Help Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AM D64)] on win32 Type "copyright", "credits" or "license ()" for more information. RESTART: C:\Users garn\Dropbox\CNM\2019Spring\CIS1250\Specs\P4Translator.py ['Bonjour, Comment allez vous?', 'Aurevoir'] Please enter a phrase to translate: Comment allez vous? Your sentence in english: How are you? >>> | LB Cot 4
Step by Step Solution
There are 3 Steps involved in it
Python version 38 Create a dictionary with keys for phrases in frenc... View full answer
Get step-by-step solutions from verified subject matter experts
