Advertisement
1nikitas

Untitled

Mar 16th, 2022
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. def funccc(func):
  2.     def funcc(n):
  3.         if len(a) == 0:
  4.             d = input('пароль: ')
  5.             if d != b:
  6.                 print('В доступе отказано')
  7.                 return None
  8.             if d == b:
  9.                 a.append(1)
  10.                 return func(n)
  11.         else:
  12.             return func(n)
  13.  
  14.     return funcc
  15.  
  16.  
  17. @funccc
  18. def fib(n):
  19.     if n == 1 or n == 2:
  20.         return 1
  21.     else:
  22.         return fib(n - 1) + fib(n - 2)
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement