Question: This is for PYTHON ----> Write a file named matchmaker.py that contains a collection of functions that will help you find the compatibility between various
This is for PYTHON ---->
Write a file named matchmaker.py that contains a collection of functions that will help you find the compatibility between various things.
The main idea used in these functions will be finding the overlap between lists of elements. These will be done as follows:


Please if possible use loops several if need be so, tuple arguments instead of lists.
1.1. agreement(il, i2) Given two lists of interests, return a ist of the shared interests between the two. Do not modifty the providesd lists. The order of elements in the returned list does not matter. You may assume that both i1 and i2 are lists or tuples and that neither contains a duplicate element. For example, agreement CC' games''museums',food'], C'art', 'food', 'hiking''games'] should return either C'games', 'food'] or C'food', 'games'] 1.2 disagreementCi1, i2) Given two lists of interests, return a list of interests in only one list. Do not modify the provided lists. The order of elements in the returned list does not matter. You may assume that both i1 and i2 are lists or tuples and that neither contains a duplicate element For example, disagreementCC' games','museums',food'], C'art', 'food', 'hiking', 'games'] should return some permutation of C'museums', "art', 'hiking'.] 1.3. compatibilityCi1, i2) Given two lists of interests, return a "compatibility score" for the two. This is computed as the number of shared interests divided by the total number of interests. Shared (shared + notshared) Do not modify the provided lists. You may assume that both i1 and i2 are lists or tuples and that neither contains a duplicate element. For example, compatibilityCL' games', 'museums','food'], C'art', 'food', 'hiking', 'games'1 should return 0.4 because there are five interests listed in total, of which only 2 are shared
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
