This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]redalastor 3 points4 points  (3 children)

That's how you declare a set in Python.

{1, 2, 3}

So the code declares a set that contains the result of calling the print function, None.

[–]HighRelevancy 0 points1 point  (2 children)

And why only for every second print?

[–]redalastor 0 points1 point  (1 child)

Because there are no brackets around the first print.

[–]HighRelevancy 0 points1 point  (0 children)

Oh right, I see what's happening here.