Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Python
- class Wallet:
- def __init__(self, coin):
- self.coins = []
- def addCoin(self, coin):
- self.coin.append(coin)
- wallet = Wallet()
- wallet.addCoin(10)
- wallet.addCoin(10)
- wallet.addCoin(50)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement