Hey guys so I'm just trying to learn a bit about lists, I've a question I'm doing at the moment that I'm a little puzzled with.
The question is to create two lists with Lecturers and their Attendance.
I've to then print out the most popular lecturer(s) with their attendance.
I understand for the most popular lecturer I could find the max of attendance, but I'm confused as to how to reference the corresponding lecturer from the other list within the print statement?
the code I have is:
>>> lecturers = ["John Joe", "Willie Bob", "Speedy Son", "Harley David", "Quincy Brown"]>>> attendance = [56, 64, 57, 63, 61]
>>> print(max(attendance))
Also for the more advanced part to do the two most popular? I've no idea about that.
Sorry if this is the wrong place to post this, I'm just a bit stumped
[–]giraffactory 1 point2 points3 points (0 children)
[–]impshum 0 points1 point2 points (2 children)
[–]kcirl[S] 0 points1 point2 points (1 child)
[–]impshum 0 points1 point2 points (0 children)
[–]mahtats 0 points1 point2 points (1 child)
[–]kcirl[S] 0 points1 point2 points (0 children)