Re: [Tutor] Constructs

2014-04-08 Thread Steven D'Aprano
On Tue, Apr 08, 2014 at 11:10:57AM +0530, Santosh Kumar wrote: > 1 #!/usr/bin/python > 2 > 3 class shape: > 4 def __init__(self,x,y): > 5 self.x = x > 6 self.y = y > 7 description = "This shape has not been described yet" > 8 author = "Nobody has claimed to make this s

Re: [Tutor] Constructs

2014-04-08 Thread Alan Gauld
On 08/04/14 06:40, Santosh Kumar wrote: 1 #!/usr/bin/python 2 3 class shape: 4 def __init__(self,x,y): 5 self.x = x 6 self.y = y 7 description = "This shape has not been described yet" 8 author = "Nobody has claimed to make this shape yet" 9 10 def __i

[Tutor] Constructs

2014-04-07 Thread Santosh Kumar
1 #!/usr/bin/python 2 3 class shape: 4 def __init__(self,x,y): 5 self.x = x 6 self.y = y 7 description = "This shape has not been described yet" 8 author = "Nobody has claimed to make this shape yet" 9 10 def __init__(self,x,y,z): 11 self.x = x 12 self.y