mymath module
def fact(x):
x_fact = 1
for i in range(1, x+1):
x_fact *= i
return x_fact
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def fact(x):
x_fact = 1
for i in range(1, x+1):
x_fact *= i
return x_fact