Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #factorial_function
- def factorial_function(y):
- if y == 1:
- return 1
- else:
- return y * factorial_function(y - 1)
- print(factorial_function(4))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement