Re: [Tutor] Question about comparing values

2011-05-22 Thread Becky Mcquilling
Thanks, you are correct of course. I need to just scrap this and start over, but I understand it a lot better now. On Sun, May 22, 2011 at 4:57 PM, Alan Gauld wrote: > "Becky Mcquilling" wrote > > I'm doing a tutorial and was given a problem, using shelve. >> > > Remember that a shelve is bas

Re: [Tutor] Question about comparing values

2011-05-22 Thread Alan Gauld
"Becky Mcquilling" wrote I'm doing a tutorial and was given a problem, using shelve. Remember that a shelve is basically a dictionary stored in a file rather than in memory. So treat it like you would a dictionary. Here is what I have so far: import shelve def user_scores(): user_name =

Re: [Tutor] Question about comparing values

2011-05-22 Thread Hugo Arts
On Sun, May 22, 2011 at 11:11 PM, Becky Mcquilling wrote: > I realize this is a fairly generic type of question, but being new to > programming, I'm not sure how best to approach it. > I'm doing a tutorial and was given a problem, using shelve.  It's taking a > user name and then asking for scores