Python program to get all pairwise combinations from a list
Given a list. The task is to write a Python program to get all pairwise combinations from the list. Finding all Pairs (No uniqueness) Example: Input: [1,"Mallika",2,"Yash"] Output: [(1, 'Mallika'), (1, 2), (1, 'Yash'), ('Mallika', 1), ('Mallika', 2), ('Mallika', 'Yash'), (2, 1), (2, 'Mallika'), (2, 'Yash'), ('Yash', 1), ('Yash', 'Mallika'), ('Yash'