# Programming Assignment: Solving Versioning and Dependency conflicts with an LLM

**URL:** <https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652>\
**Category:** Team Software Engineering with AI\
**Tags:** week-module-3, coursera-platform\
**Created:** [September 30, 2024, 6:19am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652 "2024-09-30T06:19:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaden.frazier](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@kaden.frazier](https://community.deeplearning.ai/u/kaden.frazier)\
**Post date:** [September 30, 2024, 6:19am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/1 "2024-09-30T06:19:49Z")

</div>

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:

[code removed from moderator]

---

<div class="post-metadata">

**Author:** ![vinodkumarkottem](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@vinodkumarkottem](https://community.deeplearning.ai/u/vinodkumarkottem)\
**Post date:** [September 30, 2024, 10:51am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/2 "2024-09-30T10:51:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [September 30, 2024, 1:18pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/3 "2024-09-30T13:18:17Z")

</div>

Hello there,

You had not posted under the related specialization/course I have moved it to the right place.

Second you are not allowed to post code publicly according to the rules in this forum.

Third, try the above advice and see if it resolves your issue, otherwise send me your solution in a private message and I will have a look at it!

---

<div class="post-metadata">

**Author:** ![kaden.frazier](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@kaden.frazier](https://community.deeplearning.ai/u/kaden.frazier)\
**Post date:** [September 30, 2024, 9:30pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/4 "2024-09-30T21:30:00Z")

</div>

Thank you, this has helped out and switching chatbots from multiple versions of ChatGPT to the classes gpt.

---

<div class="post-metadata">

**Author:** ![ameerbadri](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@ameerbadri](https://community.deeplearning.ai/u/ameerbadri)\
**Post date:** [October 2, 2024, 12:38am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/5 "2024-10-02T00:38:30Z")

</div>

Thanks for the hints. I spent a good bit of time with other LLMS as well. Following worked:

1. Using the provided ChatGPT
2. Focusing the LLM on division operator difference between python2.7 and 3.

---

<div class="post-metadata">

**Author:** ![ralphrass](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/ralphrass/32/92997_2.png) [@ralphrass](https://community.deeplearning.ai/u/ralphrass)\
**Post date:** [October 2, 2024, 1:27pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/6 "2024-10-02T13:27:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![joyless](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/joyless/32/96824_2.png) [@joyless](https://community.deeplearning.ai/u/joyless)\
**Post date:** [October 2, 2024, 5:17pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/7 "2024-10-02T17:17:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [October 2, 2024, 7:29pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/8 "2024-10-02T19:29:58Z")

</div>

> [@ralphrass](#):
>
> I’m reflecting now that LLMs still have strong limitations and weaknesses when it comes to providing code assistance.

I concur.

Or maybe this task isn’t one that chat tools are optimized for.

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [October 3, 2024, 6:48am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/9 "2024-10-03T06:48:04Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![andreiprb](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@andreiprb](https://community.deeplearning.ai/u/andreiprb)\
**Post date:** [October 11, 2024, 4:22pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/10 "2024-10-11T16:22:16Z")

</div>

Might i get some help in private? I’m stuck and from my point of view I don’t know what other hints/suggestions to follow.

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [October 14, 2024, 1:10pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/11 "2024-10-14T13:10:48Z")

</div>

Yes send me in private, I will reply if I can be of help!

---

<div class="post-metadata">

**Author:** ![andreiprb](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@andreiprb](https://community.deeplearning.ai/u/andreiprb)\
**Post date:** [October 16, 2024, 9:45am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/12 "2024-10-16T09:45:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![andreiprb](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@andreiprb](https://community.deeplearning.ai/u/andreiprb)\
**Post date:** [October 16, 2024, 9:46am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/13 "2024-10-16T09:46:11Z")

</div>

I’m gonna try to cover all of this cases by hand, as the Python 3 code works absolutely identical to the given Python 2.7 code.

---

<div class="post-metadata">

**Author:** ![barrieta](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@barrieta](https://community.deeplearning.ai/u/barrieta)\
**Post date:** [October 18, 2024, 2:13am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/14 "2024-10-18T02:13:30Z")

</div>

Can someone please share the code of version 2.7 python I lost the code and backup after some retries.

Also not sure if I’m the only one stuff here but 3 hours and I was not able to resolve the first part of migrate from python 2 to 3

---

<div class="post-metadata">

**Author:** ![barrieta](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@barrieta](https://community.deeplearning.ai/u/barrieta)\
**Post date:** [October 18, 2024, 2:14am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/15 "2024-10-18T02:14:16Z")

</div>

> [@andreiprb](#):
>
> gonna try to cover all of this cases by hand, as the Python 3 code works absolutely identical to the given Python 2.7 co

I’m having the same problem

---

<div class="post-metadata">

**Author:** ![Kevin\_Zihlmann](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/kevin_zihlmann/32/97864_2.png) [@Kevin\_Zihlmann](https://community.deeplearning.ai/u/Kevin_Zihlmann)\
**Post date:** [October 18, 2024, 8:08am UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/17 "2024-10-18T08:08:09Z")

</div>

Here is the magic\_summation.py file stored in the backup\_data folder. It is written in Python 2.  
[magic\_summation.py](https://community.deeplearning.ai/uploads/short-url/bZPmwiEqWKOSb81q4p9MzAYVzKH.py) (1.6 KB)

---

<div class="post-metadata">

**Author:** ![barrieta](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@barrieta](https://community.deeplearning.ai/u/barrieta)\
**Post date:** [October 18, 2024, 4:24pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/18 "2024-10-18T16:24:37Z")

</div>

> [@vinodkumarkottem](#):
>
> 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.

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.

---

<div class="post-metadata">

**Author:** ![vinodkumarkottem](https://avatars.discourse-cdn.com/v4/letter/v/9e8a1a/32.png) [@vinodkumarkottem](https://community.deeplearning.ai/u/vinodkumarkottem)\
**Post date:** [October 18, 2024, 10:14pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/20 "2024-10-18T22:14:15Z")

</div>

With Python3, replace division operator(/) with double slash (//) to get the integer value.

---

<div class="post-metadata">

**Author:** ![barrieta](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@barrieta](https://community.deeplearning.ai/u/barrieta)\
**Post date:** [October 18, 2024, 10:47pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/21 "2024-10-18T22:47:57Z")

</div>

> [@vinodkumarkottem](#):
>
> place division operator(/) with double slash (//) to get the i

I tried with it, I tried also without LLM, and test still failing, also grades I don’t know what is missed there.

---

<div class="post-metadata">

**Author:** ![swarnava2014](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@swarnava2014](https://community.deeplearning.ai/u/swarnava2014)\
**Post date:** [October 19, 2024, 6:43pm UTC](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652/22 "2024-10-19T18:43:02Z")

</div>

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.

[Next page](https://community.deeplearning.ai/t/programming-assignment-solving-versioning-and-dependency-conflicts-with-an-llm/700652.md?page=2)
