dxnge

Tsk 2 (fnc)

Sep 20th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def F(n):
  2.     if n == 0:
  3.         return 5
  4.     if n >= 0:
  5.         return 3 * F(n-4)
  6.     if n < 0:
  7.         return F(n+3)
  8.  
  9. print(F(43))
Advertisement
Add Comment
Please, Sign In to add comment