x = 0
while x < 5:
print(x)
x += 1 #the x += 1 expression is a shortend version for x = x + 1
# There is no ++ in Python, use instead:
number += 1
>>> a = 10
>>> a += 5
>>> a
15
x = 0
while x < 5:
print(x)
x += 1
# ++ in python
my_variable = 1
my_variable += 1
print(my_variable)
>> 2