Re: [Tutor] Dictionaries and multiple keys/values

2013-03-26 Thread David Rock
* Robert Sjoblom [2013-03-26 05:36]: > > brittle. However, even if I was happy with that, I can't figure out > what to do in the situation where: > data[i+3] = 'Canadian, Pub Food' #should be two items, is currently a string. > My problem is that I'm... stupid. I can split the entry into a list >

Re: [Tutor] Dictionaries and multiple keys/values

2013-03-26 Thread Alan Gauld
On 26/03/13 04:36, Robert Sjoblom wrote: Georgie Porgie 87% $$$ Canadian, Pub Food So a 5 line pattern with 4 data fields. The last one containing multiple comma separated values, potentially. The three dictionaries are: name_to_rating = {} price_to_names = {'$': [], '$$': [], '$$$': [],

Re: [Tutor] Dictionaries and multiple keys/values

2013-03-26 Thread Dave Angel
On 03/26/2013 12:36 AM, Robert Sjoblom wrote: Hi again, Tutor List. I am trying to figure out a problem I've run into. Let me first say that this is an assignment, so please don't give me any answers, but just nudge me in the general direction. So the task is this: from a text file, populate thr

Re: [Tutor] Dictionaries and multiple keys/values

2013-03-25 Thread Jos Kerc
Hi, On Tue, Mar 26, 2013 at 5:36 AM, Robert Sjoblom wrote: > Hi again, Tutor List. > > I am trying to figure out a problem I've run into. Let me first say > that this is an assignment, so please don't give me any answers, but > just nudge me in the general direction. So the task is this: from a

[Tutor] Dictionaries and multiple keys/values

2013-03-25 Thread Robert Sjoblom
Hi again, Tutor List. I am trying to figure out a problem I've run into. Let me first say that this is an assignment, so please don't give me any answers, but just nudge me in the general direction. So the task is this: from a text file, populate three different dictionaries with various informati