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