I am trying to write a function that would let me shift the individual letters in a string. The string comes from the input.
I'm looking at vowels so "a, e, i, o, u"
I would like the individual letter to be shifted one to the right. i.e the world "me" would become "mi" as i is the next letter after e.
this is what I have so far:
import random
vowels = ("a", "e", "i", "o", "u")
message = input("Enter a string")
new_message = ""
for letter in message:
if letter not in vowels:
new_message += letter
else:
new_message += random.choice(vowels)
print(new_message)
However, this randomizes the changing of the individual vowels, what would be the best way to make it shift to the next letter?