+ 1

Online translator

This program is an online translator: in the first line, it receives the number of words in the dictionary and in the next lines, the desired word and its translation, and in the last line, it receives a sentence from the user. And if there is no translation for a word it would return the original word, for example: Input: 2 hello salam goodbye khodahafez hello how are you goodbye Output: salam how are you khodahafez My code works properly but in the last line of output there is đ—Ąđ—Œđ—»đ—Č ... why??? https://code.sololearn.com/cZomlSxIus0c/?ref=app

1st Nov 2022, 7:43 AM
Amateur
2 Answers
+ 6
Line 21: replace print by return
1st Nov 2022, 8:13 AM
Oma Falk
Oma Falk - avatar
+ 1
Oma Falk Thank u so much⚘⚘
1st Nov 2022, 10:39 AM
Amateur