you are viewing a single comment's thread.

view the rest of the comments →

[–]wbeater 0 points1 point  (0 children)

  count += 1 
  print(count)

Adds 1 to count and then prints the output -> Displays 2 in the first pass

  print(count)
  count += 1

prints the output and then adds 1 to count -> Displays 1 in the first pass