Monthly Archives: March 2016

Life’s single lesson: that there is more accident to it than a man can ever admit to in a lifetime and stay sane.”
― Thomas Pynchon, V.

New Post One

Here is a list of lists from the program PYTHON —

listoflists = []
list = []
for i in range(0,10):
    list.append(i)
    if len(list)>3:
        list.remove(list[0])
        listoflists.append((list, list[0]))
print listoflists

 

Here is the Website it derives from:

http://stackoverflow.com/questions/11487049/python-list-of-lists