0

When I sorted this list,

list1 = ['6: baby', '1: dance', '24: doo', '1: lyrics', '6: shark']
list1.sort()

output = ['1: dance', '1: lyrics', '24: doo', '6: baby', '6: shark'] Output is like that. I don't understand why '24: doo' is in the middle, not the back

ThePyGuy
  • 17,779
  • 5
  • 18
  • 45
Jun Lee
  • 11

0 Answers0