0
Why isn't it working properly??
a = list(input().lower()) for i in a: if i == "a" or i == "e" or i == "i" or i == "o" or i == "u": a.remove(i) print(' '.join(a))
5 Respostas
+ 4
Does it check for capital "AEIOU"?
+ 2
Removing item from an iterable while iterating it is cause of the problem.
txt = input()
for char in "AEIOUaeiou":
txt = txt.replace( char, "" )
print( txt )
+ 1
Ok. Wait
+ 1
Check this out:
https://code.sololearn.com/chjo1G35dVCR/?ref=app
0
Thanks!
But why my code isn't working properly??