sort and sorted | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

sort and sorted

why sort and sorted of list functions not working in loop of python?

9th Jul 2020, 6:06 PM
Mohammad Alrousan
Mohammad Alrousan - avatar
2 Antworten
+ 6
codemonkey , in your sample "list.sorted()" is not correct should be "sorted(list)"
9th Jul 2020, 8:26 PM
Lothar
Lothar - avatar
0
codemonkey thanks, I fix it
9th Jul 2020, 7:23 PM
Mohammad Alrousan
Mohammad Alrousan - avatar