+14

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

+15

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.

+10

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

+8

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