Re: [Tutor] Unit testing individual modules

2013-11-20 Thread ALAN GAULD
Forwarding to the python list for visibility/commebnt. Please always use ReplyAll to include the list. Alan Gauld Author of the Learn To Program website http://www.alan-g.me.uk/ http://www.flickr.com/photos/alangauldphotos > > From: Patti Scott >To: Alan Gauld

Re: [Tutor] Not sure what I'm doing wrong with these 2 python scripts

2013-11-20 Thread Steven D'Aprano
On Tue, Nov 19, 2013 at 06:22:32PM -0600, Anton Gilb wrote: > Not sure what I'm doing wrong, here are the problems and what I have for > answers so far. What makes you think you're doing anything wrong? See below for more comments. > 1.)Write the definition of a class Counter containing: > An

Re: [Tutor] Not sure what I'm doing wrong with these 2 python scripts

2013-11-20 Thread Andreas Perstinger
Anton Gilb wrote: >Not sure what I'm doing wrong, here are the problems and what I have >for answers so far. You should tell us what's wrong with your solutions. Do you get an error? Then please show us the complete traceback (error message). Does your code something else than you expect? Then

[Tutor] Not sure what I'm doing wrong with these 2 python scripts

2013-11-20 Thread Anton Gilb
Not sure what I'm doing wrong, here are the problems and what I have for answers so far. 1.)Write the definition of a class Counter containing: An instance variable named counter of type int . A constructor that takes one int argument and assigns its value to counter A method named increme