Students=['student1','student2','student3','student4','student5','student6','student7','student8','student9','student10']
Marks = [45, 78, 12, 14, 48, 43, 47, 98, 35, 80]
def display_dash_board(students, marks):
dictionary = dict(zip(Students,Marks))
print(type(dictionary))
print('top_5_students')
for key, value in dictionary.items():
print((key, value))
Asked
Active
Viewed 71 times
0

Atif Hossain
- 9
- 2
-
```sorted(dictionary.items(),key=lambda x: x[1])```? – Aug 09 '21 at 03:05
-
Please explain how key=lambda x: x[1] works? – Atif Hossain Aug 09 '21 at 03:06
-
Check https://stackoverflow.com/questions/16310015/what-does-this-mean-key-lambda-x-x1 – Aug 09 '21 at 03:08
-
Can you please explain in details as still not clear? – Atif Hossain Aug 09 '21 at 03:16