Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Read a small letter and say if it is a vowel. What does it say for e and for x?
piece in text is True when the piece is inside the text.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, compare your working with the solution.
Plan. The word in asks if the letter is inside the text "aeiou".
if letter in "aeiou":
e is inside aeiou: a vowel.x is not: not a vowel.Log in to join the discussion.
Loading…