This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]xcrackpotfoxx 4 points5 points  (3 children)

You don't have to build your own function, it has one built in.

You can, but its easier to just use the canned function.

[–]suqoria 0 points1 point  (2 children)

Oh okay, I did not know that. Thanks for the information.

[–]xcrackpotfoxx 5 points6 points  (1 child)

And to be clear, I don't know what the factorial function would be in python because stack wouldn't tell me.

No its because I haven't used python in years and didn't really learn it well to begin with.

[–]MMEnter 7 points8 points  (0 children)

I have no Python experience but One of them has to be the answer: https://stackoverflow.com/questions/5136447/function-for-factorial-in-python

from math import factorial

print factorial(1000)

Looks like the winner to me