[python] Python basics printing 1 to 100

The answers here have pointed out that because after incrementing count it doesn't equal exactly 100, then it keeps going as the criteria isn't met (it's likely you want < to say less than 100).

I'll just add that you should really be looking at Python's builtin range function which generates a sequence of integers from a starting value, up to (but not including) another value, and an optional step - so you can adjust from adding 1 or 3 or 9 at a time...

0-100 (but not including 100, defaults starting from 0 and stepping by 1):

for number in range(100):
    print(number)

0-100 (but not including and makes sure number doesn't go above 100) in steps of 3:

for number in range(0, 100, 3):
    print(number)