Hello, all. I'm getting the following error on my code and have not been able to troubleshoot. Can anyone lend some guidance? Thanks!
Oops, try again. factorial(1) returned None, did you remember to return the result?
def factorial(x): while x > 1: num = x * factorial(x-1) return num