CJCoding With Joseph
15free / daySign inCreate account

Translate A Word List

The dict french translates English words, and the list words holds the words to translate. Print one line per word in the form <english> -> <french>, using sep=' -> ' in the print call rather than building the string by hand, then print a final line <count> words translated where the count is the length of the list. Input: none. Output: one line per word in list order, then the count line.

Expected Output:

hello -> bonjour
dog -> chien
thanks -> merci
3 words translated

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
Dictionaries
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.