Question;

With two given lists ([6,5,6,2,2]) and ([9,5,6,7,9,2,7,0]), write a python program to make a list whose elements are intersection of the another list.

Program:

Explanation:

Use set() and “&=” to do set intersection operation.

Output:

Do share your feedback in comments to help us adding more programs like this.

Checkout more Python Programs

Click here

Leave a Reply

bodrum escort - eskişehir esc - mersin escort - mersin escort bayan - mersin esc