Like this? Actually, I don't understand the question because it has no purpose.
In [8]: L = [[] for _ in range(int(input("Input a number: ")))]
Input a number: 5
In [9]: L
Out[9]: [[], [], [], [], []]
© 2024 OneMinuteCode. All rights reserved.