I want to make a while loop kind of like this
list=[]
while x in range(r):
list-x="something"
Where each time the loop begins it makes a new list with number (x). So if it loops over 5 times there will be different lists: list(1) list(2) list(3) list(4). '
Is this even possible?
list(1),list(2), etc? ... I have a feeling we're heading for a list-comp ....rnumber of lists, created dynamically, according to the value ofr, while naming themlist-1tolist-r.list-xput the list in another list and writelists[x]. Don't use variable names to encode data, it's pointless.