Curso de phyton ejercicios echos:
#funcion que verifica si un caracter es vocal
def isVowel2(char):
'''
char: a single letter of any case
returns: True if char is a vowel and False otherwise.
'''
string="aeiouAEIOU"
for x in string:
if x==char:
z= True
break
else:
z= False
return z
No hay comentarios:
Publicar un comentario