lang = {1 : "zaoshang hao", 2:"Mer-ce-ra"} str = "Good morning" new_str = str.maketrans(lang) print("In China: ",new_str[1]) print("In Ibibio: ",new_str[2]) #code ends here #output #In China: zaoshang hao #In Ibibio: Mer-ce-ra