Correct the code below so it would print an English word with its Spanish translation.
Translator
Report a typo
Sample Input 1:
Sample Output 1:
mother : madre
father : padre
grandmother : abuela
grandfather : abueloWrite a program in Python 3
def translate(kwargs):
for word in words:
print(word1, ":", word2)
words = {"mother": "madre", "father": "padre",
"grandmother": "abuela", "grandfather": "abuelo"}
translate(*words)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.