Skip to content

Instantly share code, notes, and snippets.

@pysoftware
Last active March 14, 2019 05:19
Show Gist options
  • Save pysoftware/0a6282d24b1826c18ead172756ca9c3b to your computer and use it in GitHub Desktop.
Save pysoftware/0a6282d24b1826c18ead172756ca9c3b to your computer and use it in GitHub Desktop.
Factorial
# 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