Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- turn text lines into a list
June 27, 2005, 8:33 am
rate this thread
i have a large number of lines i want to turn into a list.
In perl, i can do
is there some shortcut to turn lines into list in Python?
âˆ‘ http://xahlee.org /
Re: turn text lines into a list
[En-tête "Followup-To:" positionné à comp.lang.python.]
Le Mon, 27 Jun 2005 14:27:28 -0000, Grant Edwards a écrit :
Another way : (less typing of quotes)
all_names = """
corenames = all_names.split()