how tyo make a constantly adding variable in python

Solutions on MaxInterview for how tyo make a constantly adding variable in python by the best coders in the world

showing results for - "how tyo make a constantly adding variable in python"
Alice
19 Mar 2018
1var = 0
2while True:
3    import time
4    var = (var + 1)
5    print(var)
6    time.sleep (1)