Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Item():
- def __init__(self, item_name):
- self.name = item_name
- self.description = None
- def set_name(self, item_name):
- self.name = item_name
- def get_name(self):
- return self.name
- def set_description(self, item_description):
- self.description = item_description
- def get_description(self):
- return self.description
- def describe(self):
- print("The [" + self.name + "] is here - " + self.description)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement