One simple way to accomplish this is to simply store lists in a list of lists as such
num_lists = int(input('How many lists?'))
lists = [[] for i in range(num_lists)]
Then each list can be accessed by an index (for example list1 = lists[0]
).
1
solved Python – Create a certain “number” of lists from user input “number” [duplicate]