Created
January 11, 2018 22:32
-
-
Save archangelic/af6ba38712b4a1add85001ff1950c690 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 BigBadClass: | |
def __init__(self): | |
#this is normally where you get stuff that gets set up when you initialize the class | |
self.pants = "jorts" | |
def changepants(self, newpants): | |
# you can change the pants! | |
self.pants = newpants | |
#initialize the class | |
pantc = BigBadClass() | |
print(pantc.pants) | |
pantc.changepants("bellbottoms") | |
print(pantc.pants) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment