Last active
March 14, 2019 05:19
-
-
Save pysoftware/0a6282d24b1826c18ead172756ca9c3b to your computer and use it in GitHub Desktop.
Factorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Factorial/ Факториал | |
def factorial(num): | |
if num <= 1: return 1 | |
return num * factorial(num-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment