0

I'm having some trouble in a really simple program. I want to find the first letter of a variable created and check for it in a list of vowels. Here is the relevant code, any suggestions? Oh also, I may or may not have completely made this code up so I'm not sure if it's even close.

subject = ['Elephant', 'Bear', 'Monkey']
vowels = ['a', 'i', 'o', 'u', 'e']
chosenSubject = random.choice(subject)
if chosenSubject[0] == vowels:
    article = "an"
    print(article)
Bad
  • 1
  • 1

0 Answers0