Write a program that takes an input letter from the user until a vowel is entered. Use infinite loops (while True:)
vowels_lower=['a','e','i','o','u']
vowels_upper=['A','E','I','O','U']
while True:
n=input("Enter a letter: ")
if n in vowels_lower or n in vowels_upper :
print("You entered a vowel,",n)
break
Comments
Leave a comment