Last active
February 13, 2017 07:06
-
-
Save fiveseven808/a6922a1d604707266a71bc378ff694f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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