Re: need for help

2013-03-01 Thread Rick Johnson
On Friday, March 1, 2013 12:35:14 PM UTC-6, leonardo selmi wrote: > class ball: > > [...] > Now that you've gotten the exceptions sorted, it may be time to join the *other* 99% of programmers by editing that class identifier. All class symbols should start with (at minimum) a capitol letter.

Re: need for help

2013-03-01 Thread Alister
On Fri, 01 Mar 2013 19:35:14 +0100, leonardo selmi wrote: > hi guys > > i typed the following program: > > class ball: > def _init_(self, color, size, direction): > self.color = color self.size = size self.direction = direction > > def _str_(self): > msg = 'hi, i am a '

Re: need for help

2013-03-01 Thread Dave Angel
On 03/01/2013 01:35 PM, leonardo selmi wrote: hi guys i typed the following program: class ball: def _init_(self, color, size, direction): self.color = color self.size = size self.direction = direction def _str_(self): msg = 'hi, i am a ' + self.si

Re: need for help

2013-03-01 Thread Rob Day
It looks like you're using single underscores, not double: the methods should be __init__ and __str__. On 1 March 2013 18:35, leonardo selmi wrote: > hi guys > > i typed the following program: > > class ball: > def _init_(self, color, size, direction): > self.color = color > s

need for help

2013-03-01 Thread leonardo selmi
hi guys i typed the following program: class ball: def _init_(self, color, size, direction): self.color = color self.size = size self.direction = direction def _str_(self): msg = 'hi, i am a ' + self.size + ' ' + self.color + 'ball!' return msg my