Jump to content

Herminio

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Herminio

  1. A have a list in Python : numbers = [ 5, 7, 2, 6, 1, 3, 44,14, 9 ] how to do a function to sort (ascending or descending) this list, but putting even numbers first, odd numbers in second place? ( see result below) sorted_numbers= [ 2, 6, 14, 44,1, 3, 7, 9]
×
×
  • Create New...