Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import functools
- def fact_check(humble_opinion):
- def important_question(f):
- @functools.wraps(f)
- def wrapper(slightly_incorrect_opinion):
- return f(humble_opinion)
- return wrapper
- return important_question
- @fact_check('Emmentaler')
- def the_best_cheese(cheese):
- return cheese
- ##########################
- print(the_best_cheese('Gouda'))
Advertisement
Add Comment
Please, Sign In to add comment