Skip to content

Instantly share code, notes, and snippets.

@fiveseven808
Last active February 13, 2017 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fiveseven808/a6922a1d604707266a71bc378ff694f6 to your computer and use it in GitHub Desktop.
Save fiveseven808/a6922a1d604707266a71bc378ff694f6 to your computer and use it in GitHub Desktop.
class testclass:
""" My little class experiment """
classvar1 = "Wat"
classvar2 = "this"
def __init___(self,passedvar):
print "inside the init thing"
self.var = "idk"
self.var1 = passedvar
print passedvar
def bleh(self):
print self.var
self.var = "something else"
print self.var
test = testclass("passing this string")
test.bleh()
test.classvar1
test.classvar2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment