Re: Python simple Code

2015-01-27 Thread Salem Alqahtani
On Saturday, January 24, 2015 at 7:16:27 PM UTC-5, Salem Alqahtani wrote: 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

Re: Python simple Code

2015-01-27 Thread Salem Alqahtani
On Tuesday, January 27, 2015 at 6:51:10 PM UTC-5, Ian wrote: On Tue, Jan 27, 2015 at 4:22 PM, Salem Alqahtani salem...@gmail.com wrote: I appreciate your answers and the output that I am expected from my simple code is the following: ['salem','Ali','sultan'] ['salem','sultan','Ali']

Re: Python simple Code

2015-01-27 Thread Ian Kelly
On Tue, Jan 27, 2015 at 4:22 PM, Salem Alqahtani salem...@gmail.com wrote: I appreciate your answers and the output that I am expected from my simple code is the following: ['salem','Ali','sultan'] ['salem','sultan','Ali'] ['Ali','sultan','salem'] ['Ali','salem','sultan']

Re: Python simple Code

2015-01-27 Thread Denis McMahon
On Tue, 27 Jan 2015 15:22:01 -0800, Salem Alqahtani wrote: I appreciate your answers and the output that I am expected from my simple code is the following: ['salem','Ali','sultan'] ['salem','sultan','Ali'] ['Ali','sultan','salem'] ['Ali','salem','sultan'] ['sultan','Ali','salem']

Re: Python simple Code

2015-01-26 Thread sohcahtoa82
On Saturday, January 24, 2015 at 4:16:27 PM UTC-8, Salem Alqahtani wrote: 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

Re: Python simple Code

2015-01-26 Thread Rick Johnson
On Saturday, January 24, 2015 at 6:38:50 PM UTC-6, Denis McMahon wrote: Observations: a) There is no need to import array, you are only using a list. I'm just pondering here... (and pinky, i'm looking at you!), but there may be a good excuse for import array. I have a feeling it's merely an

Re: Python simple Code

2015-01-24 Thread Terry Reedy
On 1/24/2015 7:16 PM, Salem Alqahtani wrote: 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

Re: Python simple Code

2015-01-24 Thread Denis McMahon
On Sat, 24 Jan 2015 16:16:16 -0800, Salem Alqahtani wrote: import sys import array a=['salem','Ali','sultan'] m = len(a) def Factorials(m): if m == 0: return 1 else: print m return m * Factorials(m-1) def output(): print a def main():

Python simple Code

2015-01-24 Thread Salem Alqahtani
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