Creating a dictionary from a .txt file

Chris Angelico rosuav at gmail.com
Sun Mar 31 13:22:44 EDT 2013


On Mon, Apr 1, 2013 at 4:19 AM, C.T. <swilks06 at gmail.com> wrote:
> Thank you, Chris! I could use slicing and indexing to build the dictionary but the problem is with the car manufacturer an the car model. Either or both could be multiple names.

Then you're going to need some other form of magic to recognize where
the manufacturer ends and the model starts. Do you have, say, tabs
between the fields and spaces within?

ChrisA



More information about the Python-list mailing list