Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(n):
- if n == 1:
- return 1
- if n == 2:
- return 2
- if n == 3:
- return 3
- return f(n - 3) * n
- print(f(10))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement