Guest User

Cheese

a guest
Mar 18th, 2022
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. import functools
  2.  
  3. def fact_check(humble_opinion):
  4.     def important_question(f):
  5.         @functools.wraps(f)
  6.         def wrapper(slightly_incorrect_opinion):
  7.             return f(humble_opinion)
  8.         return wrapper
  9.     return important_question
  10.  
  11. @fact_check('Emmentaler')
  12. def the_best_cheese(cheese):
  13.     return cheese
  14.  
  15. ##########################
  16.  
  17. print(the_best_cheese('Gouda'))
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment