Factorialize Challenge Possible Bug

Hello,
I’m doing the Factorialize Challenge and my code returns the factorial but the computer doesn’t seem to be recognizing it. I was wondering if this is a bug or if I’m doing something wrong.

Nevermind. The global array variable was causing the problem. I just needed to move it into the function.

Thanks for the reply. I wasn’t sure why that was causing the problem and your explanation helped. :smile: