About 55 results
Open links in new tab
  1. Function for factorial in Python - Stack Overflow

    Feb 27, 2011 · How do I go about computing a factorial of an integer in Python?

  2. python - recursive factorial function - Stack Overflow

    How can I combine these two functions into one recursive function to have this result: factorial(6) 1! = 1 2! = 2 3! = 6 4! = 24 5! = 120 6! = 720 This is the current code for my factorial functi...

  3. Python lambda function to calculate factorial of a number

    Mar 14, 2013 · I have just started learning python. I came across lambda functions. On one of the problems, the author asked to write a one liner lambda function for factorial of a number. This is the …

  4. Calcular factorial en Python - Stack Overflow en español

    Estoy iniciándome en Python, y tengo un pequeño script que calcula el factorial de un número: a = 2 def calculaFactorial(n): if n: n = n * calculaFactorial(n - 1) else: ...

  5. Python: How to generate Full Factorial Combinations?

    3 How can I use python to generate a full factorial of combinations? Is there a fancy itertools function that generates a full factorial? I'm drawing a blank and can't think of another way to describe this …

  6. Fast algorithms for computing the factorial - Stack Overflow

    Apr 15, 2013 · Can anybody point me to more detailed descriptions of these (or other fast) algorithms for computing large exact factorials fast? Factorials with prime factorization (Python) describes the …

  7. Python: Using def in a factorial program - Stack Overflow

    Python: Using def in a factorial program Ask Question Asked 11 years, 5 months ago Modified 8 years, 3 months ago

  8. calcular factorial en python usando el bucle for

    necesito hacer el factorial de un numero entero usando el bucle for pero no se como, tengo este ejemplo pero no se en que estoy mal, estoy usando python 3.7 def factorial (*n): f...

  9. python - Factorial in numpy and scipy - Stack Overflow

    Feb 13, 2014 · You can save some homemade factorial functions on a separate module, utils.py, and then import them and compare the performance with the predefinite one, in scipy, numpy and math …

  10. What is memoization and how can I use it in Python?

    Jan 1, 2010 · I just started Python and I've got no idea what memoization is and how to use it. Also, may I have a simplified example?