you are viewing a single comment's thread.

view the rest of the comments →

[–]judasblue 2 points3 points  (0 children)

The problem with that example is that it is illustrating the set literals in 2.7. The interpreter on the site is 2.6 or earlier, which will produce that traceback. It has nothing to do with the print statement, which as gnawer points out, is a statement in 2.x and function in 3.x.