G2A Many GEOs
SHARE
TWEET

make_chocolate

a guest Apr 7th, 2020 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     def make_chocolate(self, recipe_name: str):
  2.         if recipe_name in self.recipes:
  3.             if recipe_name not in self.products:
  4.                 self.products[recipe_name] = 1
  5.             else:
  6.                 self.products[recipe_name] += 1
  7.             recipe_needed_ingredients = self.recipes[recipe_name]
  8.             for k, v in recipe_needed_ingredients.values():
  9.                 self.remove_ingredient(k, v)
  10.         else:
  11.             raise TypeError("No such recipe")
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top