Help me in solving PYTH101 problem

My issue

same output but tell me wrong

My code

# Debug the code below to output the factiorial of a user defined input n

num = int(input()) 
factorial = 1
for i in range(1, num + 1): 
    factorial *= i
print(f"The factorial of the given number is {factorial}") 

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

I think it fails for num = 0, since 0! = 1. Add an if else probably to handle this condition :slight_smile: