Skip to content

Instantly share code, notes, and snippets.

@JeffersGlass
Created October 11, 2020 23:20
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 JeffersGlass/d0871b5ec73c6ff89a5b40b7a0ddcfb6 to your computer and use it in GitHub Desktop.
Save JeffersGlass/d0871b5ec73c6ff89a5b40b7a0ddcfb6 to your computer and use it in GitHub Desktop.
class Treasure():
def __init__(self, name, value=1):
self.name = name
self.value = value
def getIntroduction(self):
return "Hello! I am called " + self.name + " and I am worth " + str(self.value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment