word = input("Translate a word: ")
for char in word:
if char in "BCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz":
print(char + "o" + char)
else:
print(char)
I have this code for a translator to a language where you add an "o" after each consonant followed by that same consonant again. When i run it and type in for example "stair" it would print out:
sos
tot
a
i
ror
If someone has an idea on how to print this out on the same line without spacing i would be very grateful!