Which packages were upgraded?
Level: Intermediate (score: 3)
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) str
s and returns a list
of package names that were upgraded (new version > previous version).
To keep it manageable you can assume that both requirement str
s have the same packages, no packages were added or deleted.
A note about the digits (major/minor) numbers in the packages: they are int
s, 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!