python increment by one code example
Example 1: python increment by 1
#a = a + 1
a += 1
Example 2: how ro have a incresing variable in python
var = 0
while True:
import time
var = (var + 1)
print(var)
time.sleep (1)
#a = a + 1
a += 1
var = 0
while True:
import time
var = (var + 1)
print(var)
time.sleep (1)