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
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
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
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