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

The intersection of sets


Statement

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.

Advertising by Google, may be based on your interests

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