I have a question in my home work assignment, The user enters a string of all lowercase letters. The python program is suppose to tell them whether or not the string contains a lowercase vowel somewhere
, the problem I have is when i enter lets say more then letter I they all comeback wrong. Like if I enter (ab) it will come back saying all of there are no lower case vowels. If my text has at least one vowel, it should print "Contains a lowercase vowel!"
I added a picture to help show more
my OG code in case my picture does not load
x = input("Enter a string of lowercase letters: " )
c = ('a','e','i','o','u')
for c in x:
if x in (c):
print ("Contains a lowercase vowel!")
else:
print ("Doesn't contain a lowercase vowel.")