Question: slove with python 3 net1.txt is the file that contains the list of friends for example, 1 is friend with 0,3,4,6,7 2 is friend with

slove with python 3

net1.txt is the file that contains the list of friends

for example, 1 is friend with 0,3,4,6,7

2 is friend with 0, 3, 6, 8, 9

def knows_everyone(network): '''(2Dlist)->bool Given a 2D-list for friendship network, returns True if there is a user in the network who knows everyone and False otherwise''' # YOUR CODE GOES HERE pass

run:

>>> knows_everyone(net1)

False

>>> knows_everyone(net2)

True

>>> knows_everyone(net3)

False

>>> knows_everyone(net4)

False

note net1.txt contains: 100 10 20 31 41 61 71 92 32 62 82 93 83 94 64 74 58 96 87 8

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!