Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def check_password(password):
- def check1(func):
- def check2(*args, **kwargs):
- if input('пароль: ') != password:
- print('неверный пароль')
- return
- return func(*args, **kwargs)
- return check2
- return check1
- @check_password('password')
- def make_burger(typeOfMeat, withOnion=False, withTomato=True):
- print('make_burger')
- make_burger(1)
Add Comment
Please, Sign In to add comment