[Tutor] Reading List from File

amingv at gmail.com amingv at gmail.com
Thu Jul 31 15:49:09 CEST 2008

If your list is in the format:

You can use
foo = in_file.readline.split(',')

Amin Rainmaker
-------------- next part --------------
An embedded message was scrubbed...
From: "S Python" <spython01 at gmail.com>
Subject: [Tutor] Reading List from File
Date: Thu, 31 Jul 2008 09:07:22 -0400
Size: 5907
URL: <http://mail.python.org/pipermail/tutor/attachments/20080731/ace245b1/attachment-0001.eml>

More information about the Tutor mailing list