Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def funccc(func):
- def funcc(n):
- if len(a) == 0:
- d = input('пароль: ')
- if d != b:
- print('В доступе отказано')
- return None
- if d == b:
- a.append(1)
- return func(n)
- else:
- return func(n)
- return funcc
- @funccc
- def fib(n):
- if n == 1 or n == 2:
- return 1
- else:
- return fib(n - 1) + fib(n - 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement