def esvocal(letter):
vocal =[ "a","e","i","o","u"]
vocalup = ["A","E","I","O","U"]
if letter in vocal and letter in vocalup:
return True
else:
return False
esvocal("s")
esvocal("a")
- Python really cares about indentation
- Use in instead of ==
1
solved Why it doesn’t return anything?