Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def factorial(k):
- solution = 1
- temp = 2
- while temp <= k:
- solution*=temp
- temp++
- return solution
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement