Help Deniska from two lists of numbers to display in ascending order those that are included in both the first and second lists.
Try writing a Python program in one line.
Input
Two lists of numbers are entered. All numbers of each list are on a separate line.
Imprint
Print the answer to the problem.
Examples
# |
Input |
Output |
1 |
1 3 2
5 1 2
| 1 2 |