Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Item class - min documentation :-)
- class Item():
- def __init__(self, item_name, item_description):
- self.name = item_name
- self.description = item_description
- 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
- # Instead of returning, print the description
- def describe(self):
- print("")
- print("A " + self.name + " is here!")
- print( self.description )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement