need help with list/variables
wx1234 at gmail.com
wx1234 at gmail.com
Tue Dec 30 14:31:53 EST 2008
I have a list and would like to parse the list appending each list
item to the end of a variable on a new line.
for instance
mylist = ['something\n', 'another something\n', 'something again\n']
then parse mylist to make it appear in my variable in this format:
myvar = """
something
another something
something again"""
how would i go about setting a variable like this?
More information about the Python-list
mailing list