Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van AI
+ 2

Can anyone tell me how to arrange those numbers in last part in dict d in descending order of appearances ?

https://code.sololearn.com/c99JBrCRV3JG/?ref=app

pythondict
6th Dec 2019, 9:44 PM
Abhay
Abhay - avatar
2 Antwoorden
+ 5
Exchange line 35 with this: for i, j in sorted( d.items(), key=lambda x: x[1], reverse=True ):
6th Dec 2019, 10:02 PM
HonFu
HonFu - avatar
+ 2
HonFu ty :-)
6th Dec 2019, 10:05 PM
Abhay
Abhay - avatar

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
Is anyone else experiencing this Sololearn issue?
0 Votes
Best language?
0 Votes
How do I keep myself motivated in coding
0 Votes
Bro can you fix yt error?
0 Votes
Anyone have song names? Comment your favorites here for a project im working on
1 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
I want to know how to make an Payment App like what I need to learn I need some guidance
0 Votes
Need suggestions to learn AI and ML
1 Votes
Bug in Completing AI Practice
0 Votes
Duration of heart refilling
0 Votes