I saw lot of people struggling with C3M2. I did too. I hope this helps.
Note : No Code Solution or Answer will be provided.
I was stuck with this code for so much time like 2-3 hours straight or something. I was not getting anywhere (I kept modifying main code and exercise code back and forth, printing intermediate steps, changing functions, going through unittest to understand what’s happening there etc.)
Then, I went away from my PC. Now after ~4 hours. I came back. Read through the entire Discussions. Read hints from the bottom of notebook. Rewrote my entire prompt with clear context and conversed with Gemini (1.5 Pro Advanced Version).
This time, I think my instructions were so clear that with the first modified code itself I passed all 3 unit tests and submission was graded 100%.
So, for anyone who is trying and confused,
- With clear enough instructions, you only need to modify “Main Code” to pass the tests with 100%.
- Read Hints at the bottom of code if you are struggling. It helped a lot.
- You don’t have to modify anything in Exercise 1,2,3 sections. All Tests will pass without problem.
- You don’t even have to change “get_club_members()” to “get_club_members_by_description()” as long as your unittest is calling correct name.
- Please make sure not to delete any cells. Don’t forget to save file before pressing “Submit Assignment”.