Hi @M4a,
There is an issue with GPT 4o for C2 (it is pointing to 3.5), we are working on it with Coursera and we soon will have it fixed.
This was an interesting assignment and took a bit of time for me.
But solved it.
- Got Magic summation is equal to: 50 with unit test pass in assignment 1. Took a lot of time to understand what’s going on. Main culprit was the division operator and not actively watching which env I have activated when I see an error. Once I knew what the exact issues are, I rewrote a very clear prompt and this time both in lab GPT-4o and Gemini 1.5 pro were able to clearly provide the correct code in few shot prompts. You definitely cant go in blindly without some knowledge of Python2 vs Python3 differences.
- Got the dependency one correct very fast : Assignment 2. This was easy.
moving to Course 3.
Unfortunately i am still having trouble with Assignment 1 (Assignment 2 was indeed easy):
- I updated those parts where all the necessary information is mentioned in the code comments.
- The division issue was mentioned in the community so i told the LLM to keep an eye on it.
Now my code works, but as some others, i get different sums.
It seems the LLM’s swing around these topics without finding any working solution:
To ensure consistent results across Python versions, let’s make sure:
- Index Handling: Remove indices correctly without affecting subsequent indices.
- Random Number Generation: Ensure randomness is consistent.
So, any hints where the problem might be?