def asenda(symbol): if symbol in "aeiouõäöü": return "t" if symbol in "gbdkpt": return "s" if symbol in "hjs": return "h" if symbol in "lmnrv": return "e" if symbol in "cfqxyz": return "v" if symbol in " -\t": return "_" if symbol in "0123456789": return "5" return "?" tekst="13 tassi + sinised sokid?" uuritav="".join([asenda(taht) for taht in tekst]) print(uuritav)