Dave Luzius wrote:
On Sat, 08 May 2010 19:02:42 +, Steven D'Aprano wrote:
On Sat, 08 May 2010 18:52:33 +, Dave Luzius wrote:
Pleaser help me with this. Here's a copy of the program, but it keeps
calling for me to define pressure.
That's because you haven't defined pressure.
When
vsoler wrote:
I have the following script:
class TTT(object):
def duplica(self):
self.data *= 2
def __init__(self, data):
self.data = data
TTT.duplica(self.data)
def __str__(self):
return str(self.data)
print
obj=TTT(7)
print obj
And I want 14
vsoler wrote:
I have the following script:
class TTT(object):
def duplica(self):
self.data *= 2
def __init__(self, data):
self.data = data
TTT.duplica(self.data)
def __str__(self):
return str(self.data)
print
obj=TTT(7)
print obj
And I want 14