Advertisement
Alinchik

Untitled

Jul 26th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. def fact(n):
  2.     if n == 1:
  3.         return 1
  4.     return fact(n-1) * n
  5.  
  6.  
  7. print(fact(7))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement