Python simple Code

Salem Alqahtani salem055 at
Sun Jan 25 01:16:16 CET 2015

Hi Guys,

I just joined the group and I hope that I can help and be active.

I have a question about python. I wrote a code on python 2.7 and I want to choose from the list of names that I provide n!. I execute the code but the result or output is the numbers. I want the people names are the result.


import sys
import array
m = len(a)
def Factorials(m):
    if m == 0:
        return 1
        print m
        return m * Factorials(m-1)
def output():
    print a
def main():
    print Factorials(m)

More information about the Python-list mailing list