(no subject)
Shaun Hogan
shogan at iel.ie
Wed Mar 8 11:51:26 EST 2000
i have this file, (below) called subs.c
how do i get it to execute, y'know, throw up a screen with the name and
number printed on it, and then get it to stay there untill i close the
window, is there a break type statement or anything?
class Subscriber:
def __init__(self,name,number):
self.name=name
self.number=number
def getname(self):
return self.name
def getnumber(self):
return self.number
s=Subscriber('joe',90)
print s.getname()
print s.getnumber()
More information about the Python-list
mailing list