Solve problem "The intersection of sets" online - Learn Python 3 - Snakify

The intersection of sets


Given two lists of numbers. Find all the numbers that occur in both the first and the second list and print them in ascending order.

Even this task can be solved in one line of code.

In all the problems input the data using input() and print the result using print().