logo

Crowdly

Browser

Add to Chrome

Egy programozó törölni szeretné a 3-nál kisebb számokat egy listából az alábbi k...

✅ 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)

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on edu.kozlek.bme.hu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome