Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class junk:
- def __init__(self):
- self.a = "This is a test"
- def works(self):
- print self.a
- def doesnotwork(self):
- print a
- def reallydoesnotwork():
- print a
- x = junk()
- x.works()
- x.doesnotwork()
- x.reallydoesnotwork()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement