We've had enough about numbers, so why don’t we try evaluating characters now?
If you know how to identify what the vowel letters are, and you know how to count up to 5, then you’re good to go!
Instructions:
i = 1
list1 = input("Enter a string of characters: ")
list2 = ['a','e','i','o','u']
list3 = list(list1.lower())
x = 0
while True:
if(i==5 or list3[x] in list2 ):
break
else:
print(list3[x])
i = i +1
x = x + 1
Comments
Leave a comment