I have no idea how to begin with this, but here's what I need. The user enters a number:
n = 3
This creates 'n' empty lists:
list_1 = []
list_2 = []
list_3 = []
That is, create 'n' number of lists, based on the input by the user.
This seems like a simple enough problem, and I am sure that I need to create a for loop, but I don't know how to go about it.
for x in range(n):
print(list_x = [])
But this gives an obvious error:
'list_x' is an invalid keyword argument for print()
What I need is a sort of a "Create a list" function, but I don't know what it is.
I am sure there are other ways to solve my problem more elegantly, but I already have a simple solution that works, I just need to create an empty list for each step. I want to now generalize it, so that I don't have to have dozens of lists created at the beginning of the program.
Also, I am a beginner with coding, so please don't be too harsh :)