Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Player:
- def __init__(self, name, money, exp, inventory):
- self.name = name
- self.money = money
- self.exp = exp
- self.inventory = inventory
- def info(self):
- print(self.name)
- for item in self.inventory:
- print(item)
- print(f'Gold: {self.money}')
- print(f'EXP: {self.exp}')
- #OLD LINE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement