while doing the anti vowel program in python and it gave me a syntax error in the if statement but I'm not able to figure out what I am doing wrong
def anti_vowel(text): n = len(text) for i in range(0,n): if text[i] = 'a' or 'A' or 'e' or 'E' or 'i' or 'I' or 'o' or 'O' or 'u' or 'U': text = text.replace('text[i]','') return text
Aucun commentaire:
Enregistrer un commentaire