Planet sets

Report a typo

Using the three given sets, write a code that creates a set containing the elements that all of the original sets have in common. Output this resulting set.

NB! You don't need to read the input; the variables containing the input data are already created for you.

Sample Input 1:

Jupiter Saturn Mars
Earth Mars Venus
Mars Pluto Uranus

Sample Output 1:

{'Mars'}
Write a program in Python 3
set_1 = set(input().split())
set_2 = set(input().split())
set_3 = set(input().split())
___

Create a free account to access the full topic