How it works?

Among the tests there is such a question. x=[] for y in range(12): if y[b] %[/b] 2 == 0: x.append(y) continue print(x) What is [b] and [/ b], what does it do. The interpreter gives an error.

9/11/2019 9:23:00 AM

Mikhail Gorchanyuk

3 Answers

New Answer


Seriously it makes zero sense. A long time ago I have reported this question and still it hasn't been taken down. Many other questions have answers that are quite wrong, but this is wrong beyond measure.


It's just a case of "people weren't very aware of the mistake" when they approved the quiz, whoever "they" is.


Thank. I even tried in python 2.6, but it still doesn't work