Answered step by step
Verified Expert Solution
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.
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 dictionaryStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started