32. Problem to get the difference between two lists.

In this program, we will take two lists as input. Find the difference between two lists with the help of the below-given steps.

Difference between two lists:

Steps to solve the program
  1. Take two lists as input.
  2. Print the elements from the list1 who are not in list2.
  3. Use for loop and an if statement for this purpose.

Output :

Related Articles

Merge all elements using special character

Reverse each element of the list

Leave a Comment