Skip to content

Instantly share code, notes, and snippets.

@tamunoibi
Created April 9, 2018 21:14
Show Gist options
  • Save tamunoibi/8768539ed93bd5f6a882e0fc51eee0d7 to your computer and use it in GitHub Desktop.
Save tamunoibi/8768539ed93bd5f6a882e0fc51eee0d7 to your computer and use it in GitHub Desktop.
def my_sort(list_numbers):
e_list = []
o_list = []
for x in list_numbers:
if x % 2 == 0:
e_list.append(x)
else:
o_list.append(x)
o_list.sort()
e_list.sort()
return o_list + e_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment