✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Egy programozó törölni szeretné a 3-nál kisebb számokat egy listából az alábbi kóddal. Miért hibás ez a megközelítés?
szamok = [0, 1, 2, 3, 4, 5]
for szam in szamok:
if szam < 3:
szamok.remove(szam)