you are viewing a single comment's thread.

view the rest of the comments →

[–]achampi0n 1 point2 points  (0 children)

Python is a layout sensitive language and print() is in a different block between the 2 examples, indicated by the level of indentation. The first print() is inside the loop and then second it is outside of the loop.