It (should, to me,) say True
if there are only vowels in the string(phrase); otherwise says False
. I don't understand why it always will return False
, since (x >= x) always returns True
.
I thank anyone for checking the solution to this query.
(str) -> bool
def valid_letter_sequence(abc):
valid_letters = abc.count('A') + abc.count('E') + abc.count('I') + abc.count('O') + abc.count('U')
counted_letters = abc.count('')
if valid_letters >= counted_letters:
return True
else:
return False