Posts by Hazzu • 1 point
1 post
-
0
votes3
answers75
viewsA: Why is my code "swallowing" string on a list?
How about using the exclusion by index? letras = ["A", "B", "C", "E", "B"] vogais = ["a", "e", "i", "o", "u"] i = 0 while i < len(letras): if letras[i].lower() in vogais: del letras[i] # os…