I’ve spent the whole day working on this assignment and it has been extremely frustrating. My code just doesn’t pass the unitttests. I went through the forum and saw that many students had issues with this assignment. I tried to implement the proposed solutions: rename files, delete the original .py files (didn’t allow me to do this but was able to create files with new names), get latest version (did this numerous times, but it didn’t fix anything).
I honestly don’t know what else to do. I’m not a super experienced Python programmer, but people like me are supposed to be able to take this course, and so far I’ve passed all the other labs.
This is the message I’m getting after I run the unittests. I’m using ChatGPT o1 preview:
Magic summation is equal to: 42.
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 30 and seed = 10.
Expected: 46
Got: 42
Yes, o1 preview realizes quite well that the issue is with the division and it has proposed several alternatives, to no avail.