You can ask the LLM “what the difference in division between python 2.7 and python 3”
On the top right hand corner there should be a “Submit Assignment” button
When I run python magic_summation_python27.py 30 10 the Magic Summation is equal to 50
Now when I test with my Python 3 code, the test case expects the answer to be 46 which n = 30 and seed = 10
Why is the test case expecting different outcomes based on the version?
If the logic has to be retained when versions are changed then the results show be expected for f(n,seed) - no?
Be sure you’re using the updated version of the assignment.
You may need to get the latest version via this procedure:
- Use the File Browser and delete all of the .py files.
- Use the Lab Help tool and “Get latest version”.
Then you can start over on the assignment.
Indeed. However, the error persists. I do not know how to complete the tasks.
What is exactly the error you are having?, did you reset the assignment as Tom is telling above!
Reset the assignment and then try to converse with the LLM about migrating from python 2.7 to python 3. Only a few things need be changed not much!
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 9 and seed = 62.
Expected:
17,
but got:
19.
I do not know how to solve this first point. I don’t understad the objective with the first point
Hi TMosh, I dont know how to obtain the lab hel tool and obtain get latest version
The File Browser is at the top of the left sidebar.
The “Lab Help” tool is the “question-mark inside a circle” in the upper right corner of the browser.
Hi there,
It should be the question mark within the bubble at the top right-hand corner of your browser window. First, save any code you would like to keep, delete the .py files in the assignment, then go forward with the steps to refresh your lab.
I find that sharing your current code with the LLM and then asking questions helps resolve this issue.
Hope this helps.
Thanks for the procedures.
I did the same.
Also removed cache memory , tried incognito mode and then clicked on Get Latest Version but the same issue as previously I had reported.
Magic summation is equal to: 50.
Failed test case: magic_summation executed properly, but output is incorrect for parameters n = 30 and seed = 10.
Expected: 46
Got: 50
I am stuck on this step for multiple days now as I have completed the entire course except for this assignment, not sure what am I missing here
That is probably ineffective.
“Get latest version” does not replace any existing files. It only will provide a new copy of a file that is missing.
That’s why you have to delete or rename all the assignment .py files before you use “Get latest version”.
Your logic is very helpful. Using your logic and o1 preview, I am able to pass. Thank you!
Hi TMosh,
See below the steps completed for LabID - kgcqyxtsxutn
-
Deleted all files in the folder
-
Clicked on Get Latest Version to get the files again -
-
Getting the same error again
Can I please get some help here?
I tried nearly 100 times and eache time GPT give me different output which enforece me to modify my code but now I give up…
What is the issue, did you pass the assignment? If you a solved topic its better to create a new topic!
No,I passed assignment 2, stuck with assignment 1. Can anyboy share the steps to solve this problem?
Is it this one: Programming Assignment: Identifying and Fixing Bugs in Code Using LLMs?
Where exactly are you stuck over there which part or on all of them?
The crucial things to remember is to assign a role to the LLM (expert programmer) and ask it to critique and finds problems with your code as well as give suggestions and solutions!