| 1 | initial version |
You want to save your list in a text file? Create a file object, write a string representation of the list.
More about reading and writing files see python documentation
L = range(20)
out = file('out.txt','w')
out.write(str(L))
out.close()
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.