Re: output question 1

2005-11-10 Thread Simon Brunning
On 10/11/05, leewang kim <[EMAIL PROTECTED]> wrote: > I wrote the following code and got the output: > a 13 0 > None > b 81 3 (snip) > where are those 'none' from? and how can I remove them? > > class Point: > def __init__(self,x,y,name): > self.x = x > self.y = y > se

output question 1

2005-11-10 Thread leewang kim
I wrote the following code and got the output:a 13 0Noneb 81 3Nonec 8 2Noned 9 2Nonee 1 1Nonewhere are those 'none' from? and how can I remove them? class Point:    def __init__(self,x,y,name):    self.x = x    self.y = y    self.name = name    def summary(self):    print self.name