A small dictionary turns English words into Spanish. Write translate(word, words): return the translation if word is in words, or word itself if it is not.
translate("cat", {"cat": "gato", "dog": "perro"})→'gato'translate("bus", {"cat": "gato", "dog": "perro"})→'bus'def translate(word, words):
# your code here: look it up with get, falling back to word
result = ""
return result
Run tries the examples. When they look right, Submit.