I'm trying to be able to add a random number generated between 1 and 5 using randint and be able to add that to a list. There are multiple lists however, so for example, on the first iteration of a loop I want it to add data to the list "car1", then on the second add the random data to the list "car2". I've attempted this below.
car1 = []
car2 = []
car3 = []
car4 = []
car5 = []
for i in range(5):
rand0m = randint(1,5)
car{0}.append(rand0m).format(i)
I know that the {0}.format only workds with strings, it was just to show you what Im trying to do. I am using Python 3