[Tutor] Question on list
james roy
james_royus at eudoramail.com
Fri Sep 12 12:36:49 EDT 2003
Sorry pressed the wrong button while typing.
Hello,
I am new to programming with python. I dont know whether i should ask this question here or not.
I am having my problem like this:
I am having a few lists that i know in no dynamically.
For example:
List1 = ['1','2','3']
List2 = ['/']
List3 = ['4','5','6']
I want to make the combinations like this:
'1' '/' '4'
'1' '/' '5'
'1' '/' '6'
'2' '/' '4'
'2' '/' '5'
'2' '/' '6'
'3' '/' '4'
'3' '/' '5'
'3' '/' '6'
I want to genearlise this as:
I can have 'n' no of elements in 'N' no of lists and i want to make
the combinations like i have written.
I am waiting to welcome your suggestions.
Thanks a lot.
With regards,
James
Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com
More information about the Tutor
mailing list