Python projection is not working with MongoDB Free Cloud

mydoc=list(mycol.find({ “pId”:“3020956658” }, {“id1”: 1, “drId”: 0, “name”: 1, “cno”:1, “email”:1, “address”:1,“compid”:0,“comp”:0,“compst”:0,“personalh”:0, “presenth”:0, “pasth”:0,“fh”:1}))

The above line is giving error.
I have tried to follow the order of the different fields.
Kindly help

Hi @sps

Can you flag which chapter, lesson, and exercise in M220P that you are having a difficult with?

Kindest regards,
Eoin

Respected Sir,
I am writing code for research purpose and having difficulty in having selective projections. I am taking help of the resource materials and doubts of mongodb university.
With best regards

Hi @sps

Thanks for the clarification! We have a great community forum where you can have an in-depth conversation about specific use cases and interesting problems that you get to solve using MongoDB. I would highly recommend posting your question there for a more involved discussion as it appears to be outside of the scope of the M220P course. If I’ve misunderstood and it is related to a lesson within MongoDB University, please do clarify which chapter and lesson within M220P and we would be happy to help.

Kindest regards,
Eoin