Created
October 17, 2018 15:43
-
-
Save JackInTaiwan/99412d1ff5ff0cec89468f34ba54a320 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 Shiba: | |
pee_length = 10 | |
def __init__(self, height, weight): | |
self.height = height | |
self.weight = weight | |
@staticmethod | |
def pee(): | |
print("pee" + "." * pee_length) | |
# Error > NameError: name 'pee_length' is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment