Hi, please could you help me out with the "factorial" problem - I have been trying to solve it on my own with no luck. I had a look at what others have done but it ends up confusing me when I do not think along their line of thought.
Thank you in advance for your help!
Oops, try again. factorial(2) returned  instead of 2
def factorial(x): if x == 1 or x == 0: return 1 while x > 1: number_list =  factorial_answer = x * range(x-1, 0, 1) return factorial_answer