Countries of affiliation
We saw in the last exercise that countries can be associated with a laureate as their country of birth and as their country of death. For each prize a laureate received, they may also have been affiliated with an institution at the time, located in a country.
Este exercício faz parte do curso
Introduction to MongoDB in Python
Instruções do exercício
- Determine the number of distinct countries recorded as part of an affiliation for laureates' prizes. Save this as
count
.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# The number of distinct countries of laureate affiliation for prizes
count = ____(db.laureates.____(____))
print(count)