views:

44

answers:

0

Possible Duplicate:
Finding combination in Python without importing itertools

Hi everyone,

I want following task to be done in Python without importing any modules.

My Code consists

Two List
---------

list1=['aun','2ab','acd','3aa']

list2=['ca3','ba2','dca','aa3']

Function
---------

Where it will

*Generates 2 items combination from list1

*Generates 2 items combination from list2

*Generates 2 items combination from list1 and list2

I dont need to print these all combinations of two items

But I want to pass all these 2 items combinations to further task and show results

 Example
 -------

 analysize R.. **ca3** .... and ... **2ab** // Combinations of two items from list1 and list2

 Print analysize

*Note- I have asked similiar question before but couldn't figure out problem without using any modules in python. When I used itertools modules then other application can't import or support itertools.combination.

Thanks to previous Gurus who helped me out

Help in python is appreciated. Thank you