Hello, I am currently doing the team software engineering with ai course module 3 and stuck on the programming part 1. It’s been 11+ hours of chatting with 3 different chatbots about converting code from Python 2.7 to Python 3. I need help. Below is the code that I am stuck on:
Same here, but fixed the code. Issue here is compatibility between Python 2 and Python 3 related to division operator, which the LLM is not fully addressing yet by default unless you ask for it.
I’ll tell you what. That was a pain. No LLM was able to solve the code adaptation. As I work with Python, I had to MANUALLY fix the code in order to pass the tests. With no Python knowledge it cannot be done. Also done the second exercise without LLM. I’m reflecting now that LLMs still have strong limitations and weaknesses when it comes to providing code assistance.
This assignment was totally annoying. I used chatgpt 4o for 1hr and assessed both the division handling difference and numpy versioning behaviour. Then i swhitched to chatgpt o1 preview and got it in 20 minutes or so feeding him with the example analyzed by the unittests function. Eventually produced a working version.
Definetly the most annoying test of the unit.
They do have limitations, try to think about natural vs. artificial intelligence! But the point here is that they can use to help and assist you with efficiency, any technology is meant for that not to do the intelligence part!
No more need. I fixed the main code, but the grader and the unittests are flawed. I run the Python 2.7 code completely unmodified (from the backup folder) with the values where i get grader/test errors. I get the wrong result.
Is there a way that the creator check the lab about migrating Python 2.7 to Python 3
I have been spending a lot of time with that test I created a new method from scratch, and checked the division operator with python 3 but it is still failing can someone please check that?
I’m not sure if I’m the only one, but something makes me think there is a problem with that challenge.
The magic_summation.py in backup_data is giving result of 50 when ran with n=30 and seed 10. But the unit test expects a result of 46 for the same input.
I am confused because this is the original file, which i have not modifed, and still it is giving wrong results.