Code Samples Q2 - Answer Inaccurate

Hi guys,

I think there is an inaccurate answer expected in the second question for the Code samples lesson.

The ‘used variable to reference target collection’ answer is expected as part of the correct full answer, which i think is a mistake because the python example referenced collection by client key rather than a variable holding the collection instance as value.

result = client[‘test’][‘people’].find(filter=filter)

2 Likes

Hi @Stas_Baskin, Can you share more details here to simplify your opinion/question/suggestion ?

2 Likes

Well spotted @Stas_Baskin, I’ll add an update to the Python code to make the collection a variable rather than referring to it by the key as the question and indeed the other languages do access the collection using a variable rather than by key.

Thanks!
Eoin

3 Likes

M001 :kissing_heart: