avatar Bite 163. Which packages were upgraded?

In this Bite you compare a list of packages (aka requirement.txt) from before vs. after (pip) upgrade. Check the TESTS tab for the format of the input data.

Complete the changed_dependencies function that receives the old and new requiements (multiline) strs and returns a list of package names that were upgraded (new version > previous version).

To keep it manageable you can assume that both requirement strs have the same packages, no packages were added or deleted.

A note about the digits (major/minor) numbers in the packages: they are ints, so twilio==6.23.1 > twilio==6.3.0 (see also Twilio's history log).

Have fun and we hope you learn a thing or two! (hint: Python's standard library is your friend!)

Login and get coding
go back Intermediate level
Bitecoin 3X

Will you be the 121st person to crack this Bite?
Resolution time: ~50 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.71 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help