Valueerror:
Task is to find,sort,and remove the student with 'type': 'homework' and with the lowest score using MongoDB. I also tried to use toArray() function,but it gave an error. Now I try
Solution 1:
collection.find
only takes one positional argument and you're giving it two.
Change your calls so that they look like the following: grades.find({"type": "homework", "student_id": i})
.
Post a Comment for "Valueerror:"