Your question is Identify Vulnerable Dependencies. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Write a function to identify vulnerable dependencies in a mock file system.
The mock file system is a dictionary mapping file paths to manifest contents. Each nonblank, noncomment line has the form package==version. An advisory database maps package names to inclusive vulnerable version intervals. Return sorted package names that appear in any manifest with a version covered by at least one advisory interval.
Signature: def find_vulnerable_dependencies(files, advisories):
Versions contain dot-separated nonnegative integers. Ignore packages absent from the advisory database. Duplicate declarations should appear once in the result.
def find_vulnerable_dependencies(files, advisories):