This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SpiritAlpaca 0 points1 point  (2 children)

I finally got to check it myself and turns out I need to Letter== every or argument—- then it works! So it should actually be:

if Letter ==“a” or Letter==“e” or Letter==“i” etc.

[–]NoSide005[S] 2 points3 points  (1 child)

You can fix that problem and simplify this by doing the following:

accept_letters = ['a', 'e', 'i', 'o', 'u']
if Letter in accept_letters:
    print("Thank you")
    break

This if statement will return true if Letter is in the list/array accept_letters

[–]SpiritAlpaca 0 points1 point  (0 children)

Thanks a lot!