Sobes.tech
Junior — Senior

Implementation of a function to calculate factorial

livecode

Task condition

Create a function that calculates the factorial of the given number.

def factorial(n):
    # your code here
    pass