Tourists

Report a typo

Eugene and Rose decided to travel abroad. For convenience, they will go to a country where one of them has already been, but not where they both have.

Output a set of potential countries for them.

If you feel up to trying something new, use set.symmetric_difference(other), which returns a new set that contains all items from both sets, except for their common elements.

Sample Input 1:

Greece Netherlands Colombia UK
Italy UK Russia Greece Canada

Sample Output 1:

{'Russia', 'Colombia', 'Canada', 'Netherlands', 'Italy'}
Write a program in Python 3
# work with these variables
eugene = set(input().split())
rose = set(input().split())
___

Create a free account to access the full topic