Re: [Tutor] Saving class instances

2009-07-13 Thread Daniel Woodhouse
Regards, Daniel Woodhouse On Mon, Jul 13, 2009 at 5:21 PM, Thomas Scrace wrote: > Hi everyone, > > I am new to Python (and to programming) and, now that I have worked through > most of Learning Python, I have set myself the exercise of writing a little > text-based program t

Re: [Tutor] Is my style OK in this elementary student exercise?

2009-07-04 Thread Daniel Woodhouse
our code in get_dict() was repeated (basically the same operations to get the key and the value). You should try to avoid duplication if possible, either by putting the code in a seperate function, or just collecting everything at once as I have done. Regards, Daniel Woodhouse On Sat, Jul 4, 20

Re: [Tutor] Needing Help

2009-06-30 Thread Daniel Woodhouse
You can use something like pastebin.com if you don't want to post huge chunks of code. You could also just tell us what problem occurred, was there a traceback (error message)? On Tue, Jun 30, 2009 at 8:06 PM, Bob Rea wrote: > I am jsut beginning to learn python form a book. I have run > into a