Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Top 3 students
#2
sort scores, you can pass key argument to sort().
(Jan-17-2021, 09:08 AM)banidjamali Wrote: I have successfully achieved the goal
also check the output of your code - it's incorrect, because you sort keys and values separately
ndc85430 and banidjamali like this post
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Top 3 students - by banidjamali - Jan-17-2021, 09:08 AM
RE: Top 3 students - by buran - Jan-17-2021, 09:30 AM
RE: Top 3 students - by Serafim - Jan-17-2021, 09:49 AM
RE: Top 3 students - by Serafim - Jan-17-2021, 10:04 AM
RE: Top 3 students - by banidjamali - Jan-17-2021, 11:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python program that calculat grades of students biligorm 3 2,269 Apr-04-2020, 10:11 AM
Last Post: buran
  python dictionary for students records atux_null 12 19,308 Nov-12-2017, 04:47 PM
Last Post: atux_null

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020