I have an input string from user and I want to translate it according to the keys in my dictionary. And I want to write it not line by line:
dict{"a":"bla", "b": "gla", "c":cla"}
user_text = input("Write your text: ")
If the user writes acab
, the desired output should be like this:
bla cla bla gla
So far I either get bla, cla, gla, or it doesn't recognize the key, as there is no such acab, only a or b or c and now I hope you see my problem...
I think I should use loops.