Advertisement
STANAANDREY

LSD3 1

Oct 14th, 2022
930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. def prog(n):
  2.     if n == 0:
  3.         return 2
  4.     else:
  5.         return 2 * prog(n - 1) - 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement