Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sentence = input("What Swedish word or sentence do you want to translate to Rövarspråk? ")
- sentence = sentence.split()
- roevar_sentence = ''
- consonants = {"B", "C", "D", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "V", "W", "X", "Z",
- "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z"}
- for word in sentence:
- for i in word:
- if i in consonants:
- roevar_sentence += i + "o" + i
- else:
- roevar_sentence += i
- roevar_sentence += " "
- print(roevar_sentence)
Add Comment
Please, Sign In to add comment