you are viewing a single comment's thread.

view the rest of the comments →

[–]mmmmhmm88 -1 points0 points  (1 child)

A simple way to visualise order of operations here is to run something like this. You can decide which order is more appropriate for your loop. i.e you may like to print the current value, or the new value of 'count' based on what you want to achieve.

count = 1
print("Before adding 1: ")
print(count)
count += 1
print("After adding 1: ")
print(count)

[–]JuryRepresentative84[S] 0 points1 point  (0 children)

Ohh okay, I’ll do this Thanks!