Rivers

Report a typo

Some states of the USA share their names with rivers. We have defined two variables with respective place names.

Print out a new set with river names that don't overlap with given states.

You can easily subtract the sets.

Sample Input 1:

Alabama Missouri Mississippi
Georgia Alaska Missouri

Sample Output 1:

{'Alabama', 'Mississippi'}
Write a program in Python 3
# work with these variables
rivers = set(input().split())
states = set(input().split())
___

Create a free account to access the full topic