How would you define a factorial function in Python? 🥇

  Mathematics

Answer:

There’s a math module in python and it can do math.factorial(x). If you want, though, you can construct the module yourself but don’t try it if you haven’t got enough experience. But all this sound like asking to do your homework. If you really don’t know how to do that rephrase the question, please.

It’s easy!

LEAVE A COMMENT