41. Problem to return true if one common member in lists else False.

In this program, we will take two lists as input & return true when there is at least one common member in lists with the help of the below-given steps.

Common member in lists:

Steps to solve the program

  1. Take use lists as inputs.
  2. Use for loop for checking common members in the list.
  3. Return true at least one common member in lists.
  4. Print the output to see the result.

Output :

Related Articles

Remove all odd index elements.

Convert multiple numbers into a single number

Leave a Comment