C3M2_Assignment SocialNetwork Database

Can you see what your function prints and what is the expected output? You have placed a print statement on top of the prints!

It’s a good habit to engage with the LLM even when the output you are obtaining is not right for you!


Hi,
anyone can explain this error for me?
Thank a lot

The grader uses different tests than are used in the notebook. Passing the tests in the notebook does not prove your code is perfect.

Hi @longnq9 ,

  1. Your call for get_club_members() is called with the club description ‘fitness club’ which is not for getting member of the hiking club.
  2. your output for hiking club members is different from the expected output.
  3. the exception error points to a variable club_member is not defined. Please you need to check your code.

Can you suggest how to fix this problem?

ah, I just change input club name to test output.
Exactly, my code had run correctly.

Hi @longnq9 ,

Change the club description back to hiking, and then rerun your code from start. To get a clean run, first click on kernel at the top menu bar, select restart and clear all output. That should pick up the variable club_member.

1 Like

Hi,

The auto-grader is saying that my code is failing a test case while evaluating the get_club_members. But, when I run the same code from my personal notebook where I have replicated the entire assignment, it seems to output the correct members against all the clubs. The code has passed all unittests. I tried resubmitting several times, deleted the old notebook and copied from the backup notebook, made it my master and tried submitting from that too. Restarted the Kernel and cleared all output too. Still, no luck. I have wasted a lot of time on this. It looks like I am running round in circles now. I am attaching some relevant screenshots,

  1. My auto-grader response,
  2. Some of the results that I am getting while running the same code from my Jupyter Notebook
    for your reference. Kindly help.

Thanks & Regards

Hi, Could someone from the team help on the above question? It’s been five days since I’ve posted this. Should I make it a separate topic and post again?

Hello, send me your code solution in a private message! If I dont seen any problems with it then I will let know somebody from the team ot have a look at it!

Done. Thank you.

1 Like