Unit 3 Task 17: Simple phrasebook

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Unit 3 Task 17 - Simple phrasebook

← Unit 3 tasks - Solution


Create a small English to Spanish (or any pair) dictionary with at least five everyday words.

Loop: user enters one English word until quit. Print the translation, or No translation if missing (use .get(word, "No translation")).

Skills: .get with default, loop.