Jump to content

Herminio

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Herminio

  • Rank
    Newbie
  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...