Skip to content

Instantly share code, notes, and snippets.

@JackInTaiwan
Last active October 17, 2018 15:42
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 JackInTaiwan/dae7dcf393fbcd71638a148f9292c72f to your computer and use it in GitHub Desktop.
Save JackInTaiwan/dae7dcf393fbcd71638a148f9292c72f to your computer and use it in GitHub Desktop.
class Shiba:
def __init__(self, height, weight):
self.height = height
self.weight = weight
@staticmethod
def pee(length):
print("pee" + "." * length)
Shiba.pee(3)
# Result > pee...
Shiba.pee(20)
# Result > pee....................
black_shiba = Shiba(90, 40)
black_shiba.pee(10)
# Result > pee...........
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment