I understand that the assignment was updated about 10 days ago to address some of these issues.
I’ve noticed a good amount of us are still encountering issues after the update. Even after following everyone’s tip so far, and even reaching out to others for help within the community.
Even when I update my lab, the old labs are still loading. I cannot even start from scratch the way that I wish.
To update your lab, you have to rename your original files and then use “Get latest version”.
is anyone who previously had difficulties willing to help the rest of the community bypass these difficulties without withholding.
Thank you in advance. So many people are having difficulties. I personally do not want your answers. I genuinely could use the help.
The issue is happening in random generation steps.
Did you rename your notebook files (including unittests.py), and then use Get Latest Version?
Figured it out. Thanks a lot .
Can you reply with some infomation on how you fixed it?
Hi All - Even i’m facing the issue with Assignment-1. Wasted about 3hrs debugging the code even with the provided ChatGPT env & asking the LLM to focus only on division logic from Py 2.7 to 3, but it still doesn’t work. This assignment made me realise the drawbacks of relying on LLM for solution as it keeps going in loop with the responses without actual progress. Tried LLMs from OpenAI, Claude, Meta etc…none works…can someone please help?
I also feel this assignment is a bit flawed as I don’t understand the point of this. Looks like expert level python knowledge is required to fix this.
well, there are some non-obvious things, like:
- backup folder may contains the outdated code that not the same within 2.7 version file in assignment folder
- pay attention to division operator
- pay attention how you form indexes to delete list, as there is no necessity of set
- pay attention to how you treat and index during the delete process as LLM may change it
and basically that’s it
Check @Sergei_Shushkov answer above, make sure you update the Lab file to the latest.
Ask the LLM to find any issue if converting the python 2.7 to python 3, it pretty straight forward you only need to change a couple of thins. But make sure you have the new version!
Yes!! ça passe maintenant . Merci beaucoup
I found that the LLMs sometimes make too many changes. When I asked the LLM only to make necessary changes but keep original logic it worked.
Not to mention needing to update the files by going to Help.
Also the backup python27 code does not match the updated python27 code provided in the assignment folder.
This assignment took me the longest to solve from all the assignments in the 3 courses and I got a bit frustrated along the way. The reason it took me so long was, that both, the LLM and I, didn’t fully understand how the magic summation really works. The example given in the description doesn’t capture the hole picture and the python 2.7 code with the iterator is not easy to understand (thus the word magic summation).
Here I give you an easy example that captures the entirety of this magic summation:
Calling the function with n=5 and a random seed of 555 returns the magic sum 8.
magic_summation_python27.py 5 555 → magic sum: 8
Why is that? Let me break this down into four steps:
- A magic list of 5 integer number is created: [1, 2, 3, 4, 5]
- With the random seed of 555 a list of unique indices that will be removed is created: [1, 5, 4, 3]
- Now one after another, the magic list is shortened:
a) Remove 1st element → [1, 3, 4, 5]
b) Remove 5th element → no 5th element
c) Remove 4th element → no 4th element
d) Remove 3rd element → [1, 3, 4] - Divide two consecutive elements in the magic list and sum the results:
a) 3/1 = 3
b) 4/3 = 1
c) Last element: 4
Magic sum: 3 + 1 + 4 = 8
Hint: Maybe it is helpful to provide the LLM with this detailed example. Let me know, whether it worked or not. Good luck with the assignment and hang in there!!!
Thanks, @gent.spah ! This was the key that unlocked the door for me. Originally, I was just telling the LLM to change the code, and followed up with “strict” instructions to address issues noted by others within the thread. By asking about the potential issues when converting, the LLM gave me a better breakdown that included a broad list of issues to consider when making the conversion, highlighting the issues that should be addressed and noting which issues would not apply. I was then able to get the LLM to help me find the solution.
The “LLM Best Practices” and “Get the Most out of LLMs” sections within our first course will be very helpful. I think that it is especially important to use the LLM as a learning tool by asking questions and giving feedback of your outputs, instead of just giving it commands to perform.
Thank you to all who brainstormed and gave tips!
Hello @Jemyle, its absolutely good to converse with the LLM so it can help you find the things you need. I just send the message as the learner was not getting anywhere with his conversation with the LLM and tried to rail him on the right direction and different things work for different users, somebody who has good knowledge of python need not have the LLM explain all the details!
Hi everyone,
Could everyone share here the unittest.py since I made some modification. It seems that I’m not able to retrieve it.
Any feedback is appreciated!
Thanks
Hi all,
I have deleted the notebooks and forced to get the updated using the procedure of Gent and as I was thinking the random values were the reason why it was not matching. In fact, I have pasted the same notebook with the code and I passed it by achieving the specialization !
Thanks a lot to supporting me during this journey!
Kind Regards
Can you help me with this point please?
How to submit the assignment 1 could anyone telling me ?