Python ProgrammingPython Programming

Create empty list of lists Python

thelist = [[] for i in range(4)]
print(thelist)
Output
[[], [], [], []]