Got stuck


def factorial(x):
if x==1 or x==0:
return 1
for char in x:


Define a function factorial that takes an integer x as input.

Calculate and return the factorial of that number.

i dont know how to express that x has to be multiplied by (x-1)(x-2)…etc.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.