Germany, then and now
Just as we saw with Poland, there are laureates who were born somewhere that was in Germany at the time but is now not, and others born somewhere that was not in Germany at the time but now is.
Este exercício faz parte do curso
Introduction to MongoDB in Python
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
from bson.regex import Regex
# Filter for laureates with "Germany" in their "bornCountry" value
criteria = {"bornCountry": Regex(____)}
print(set(db.laureates.distinct("bornCountry", criteria)))