Never from there, but sometimes there at last
There are some recorded countries of death ("diedCountry"
) that do not appear as a country of birth ("bornCountry"
) for laureates. One such country is "East Germany".
This exercise is part of the course
Introduction to MongoDB in Python
Exercise instructions
- Return a set of all such countries as
countries
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Countries recorded as countries of death but not as countries of birth
countries = set(____) - set(____)
print(countries)