Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Help me solve this question. It has to be done in Python Language. Please Don't use advanced python and solve it using basic python

Please Help me solve this question. It has to be done in Python Language. Please Don't use advanced python and solve it using basic python like functions, lists, tuples, dictionaries, strings, etc.image text in transcribed

Question 3: Before you graduate, you get the signature from all your friends in your yearbook - which will be stored as a dictionary for the program. In this dictionary, the keys are the name of other students in the batch; the value is either 0 (for not signed) or 1 (for signed). Like you, all other students are also doing the same - and there is dictionary entry for each. For creating this dictionary, input is given in a file - if there are N students, then the file contains: name1: name 2,1 name3, 0 name4, 1 name2: name1, 0 name 3,0 name 4,0 (Like this data is there for all the graduating students). Write a program to determine who has the most signatures and who has the least (if there are more than one for max/min - print all). Suggestion. Initially manually create a dictionary yearbook ={ name1: {}, name2: {},}, and then determine students with most/least signatures. Then write a function to read the file and create this dictionary

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

ISBN: 3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

8 2 6

Answered: 1 week ago

Question

Additional Factors Affecting Group Communication?

Answered: 1 week ago