def fill_register(self):
     """Method will fill SodaMachine's register with certain amounts of each coin when called."""
     for index in range(8):
         self.register.append(coins.Quarter())
     for index in range(10):
         self.register.append(Coin.Dime())
     for index in range(20):
         self.register.append(Coin.Nickel())
     for index in range(50):
         self.register.append(Coin.Penny())
Esempio n. 2
0
 def fill_wallet(self):
     """Method will fill wallet's money list with certain amount of each type of coin when called."""
     for index in range(8):
         self.money.append(Coin.Quarter())
     for index in range(10):
         self.money.append(Coin.Dime())
     for index in range(20):
         self.money.append(Coin.Nickel())
     for index in range(50):
         self.money.append(Coin.Penny())