Use Python to write a function besties_coverage() thatcomputes the “coverage” of nodes within a social network that areconnected via predefined relationships to a given list ofindividuals, i.e. the proportion of connected individuals, to thetotal size of the network (= the number of people in the socialnetwork). The function takes three arguments:
- individuals, a list of individuals, each in the form ofa string ID;
- bestie_dict, a dictionary of sets of friends of eachindividual in the social network (as per the first question of theProject); and
- relationship_list, a list of functions definingrelationships in the social network, selected from friend_bestiesandfriend_second_besties.
The function should return a float, corresponding
OR
OR