Help me, please. I don't understand why this code doesn't work!
It shows me an error window:
"Something went wrong
Click Close to try again or refresh the page."
And it doesn't help.
def factorial(x): result = 1 while х > 0: result *= x х -= 1 return result