fork download
  1. numbers = [6, -2, 2, -7]
  2. numbers.sort()
  3. print(numbers)
  4.  
  5. strings = ['6', '-2', '2', '-7']
  6. strings.sort()
  7. print(strings)
  8.  
  9. mixed = ['6', '-2', 2, -7]
  10. mixed.sort()
  11. print(mixed)
Success #stdin #stdout 0s 23296KB
stdin
Standard input is empty
stdout
[-7, -2, 2, 6]
['-2', '-7', '2', '6']
[-7, 2, '-2', '6']