Compilador de Python Online (Editor / Interpretador)
Escreva, execute e compartilhe o seu código Python instantaneamente com o Compilador de Python Online da Asimov Academy.
valores = [300, 10, 90, 150, 120, 40]
for i in range(len(valores)):
valor = valores[i]
if valor > 100:
del valores[i]
print(valores)
# ERRO: IndexError: list index out of range