To start off, I know almost nothing. What I want to do is have a variable with increasing numbers, like this:
testvar1 = "something"
testvar2 = "something else"
I want to automate this , so every time i run this part of the code, it will create a new var with one number bigger then the last var. This is probably very stupid. I would be happy if some would care to explain it to me. /:
Edit: Found it
import time
variables = {}
counter = 0
while True :
variables[counter] = counter
print(variables[counter])
counter = counter + 1
time.sleep(2)
Sorry. It´s fascinating that you only find the answer after asking somewhere.