How can i rearrange a list [1,3,5,2,4] in ascending order | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How can i rearrange a list [1,3,5,2,4] in ascending order

13th Feb 2019, 5:37 PM
Kevin
Kevin - avatar
2 Réponses
+ 3
print(sorted([1,3,5,2,4]))
13th Feb 2019, 5:44 PM
Anna
Anna - avatar
+ 1
thanks
13th Feb 2019, 5:49 PM
Kevin
Kevin - avatar