Question: in python # Problem 3 def get_missing_parts(goal, inventory): # Your code here # Problem 4 # Your code here Your code for this assignment must

in python
in python \# Problem 3 def get_missing_parts(goal, inventory): \# Your code here
\# Problem 4 \# Your code here Your code for this assignment

\# Problem 3 def get_missing_parts(goal, inventory): \# Your code here \# Problem 4 \# Your code here Your code for this assignment must use dictionaries as described. No credit will be given for importing modules specifically designed to work with multisets. 4. (3 points) Below your function definitions, write a program that performs the following: - Call read_parts_list on each of the text files provided with the assignment. Store the returned dictionaries into variables named parts1 through parts6. - Verify the following by calling the appropriate functions and printing their return values: - parts1 is not a multisubset of parts2 - parts1 is a multisubset of parts3 - parts2 is a multisubset of parts3 - parts3 is a multisubset of itself - parts 3 is not a multisubset of parts1 - parts3 is not a multisubset of parts2 - parts6 is a multisubset of parts4 - parts6 is not a multisubset of parts5 - get_missing_parts (parts3, parts3) returns an empty dictionary - get.missing-parts (parts6, parts4) returns an empty dictionary - get_missing-parts (parts6, parts5) returns a dictionary with the following keyvalue pairs: '48336-115': 1,300386 ': 3,4286155;18,5420012 ': 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!