Advertisement
Atheuz

Untitled

May 5th, 2011
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. class junk:
  2.     def __init__(self):
  3.         self.a = "This is a test"
  4.  
  5.     def works(self):
  6.         print self.a
  7.  
  8.     def doesnotwork(self):
  9.         print a
  10.  
  11.     def reallydoesnotwork():
  12.         print a
  13.  
  14. x = junk()
  15. x.works()
  16. x.doesnotwork()
  17. x.reallydoesnotwork()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement