Create FindStuMaxBorrowedBooks(lib) in python coding
One simple example is illustrated below.
lib:
{0: {'Book 2222', 'Book 1249', 'Book 9228'},
8: {'Book 2343', 'Book 4354'},
2: {'Book 3433', 'Book 3545', 'Book 3434'},
5: {'Book 2321', 'Book 2357'}}
Output:
The following students borrowed the most books, i.e. 3 books
Student ID 0 borrowed:
{'Book 2222', 'Book 1249', 'Book 9228'}
Student ID 2 borrowed:
{'Book 3433', 'Book 3434', 'Book 3545'}
RELATED QUESTIONS
RELATED TOPICS
ABOUT ANSWERBAG
Answerbag wants to provide a service to people looking for answers and a good conversation. Ask away and we will do our best to answer or find someone who can.We try to vet our answers to get you the most acurate answers.
Copyright 2023, Wired Ivy, LLC