How To Code A Factorial Function In Python