Create a program translate.py that translates certain English words into Hawaiian. We provide you a dictionary of basic English-to-Hawaiian words. You just get the user input and print the translation for each word that is in the dictionary. If the word is not there, just print the English. Red is the user's input:
python3 translate.py to translate: hello how are you translation: aloha how are you to translate: did you see that man ride the turtle translation: did you see that kane ride the honu to translate: let's get some food and chill on the patio translation: let's get some grinds and chill on the lanai to translate: quit aloha!
You may assume the input is all lowercase without punctuation. Here is some starter code:
# translate.py
translations = { 'hello':'aloha', 'bye':'aloha', 'family':'ohana', 'thanks':'mahalo', 'turtle':'honu', 'food':'grinds', 'patio':'lanai', 'woman':'wahine', 'man':'kane' }
sentence = input('to translate: ')
# Your code here!
# REMEMBER: to print one word at a time on the same line: print("word", end=' ')
print('aloha!')
Submit your program to the online submission system under hw14-aloha.
submit -c=sd211 -p=hw14-aloha program.py