Contents:
kyu_6.sort_the_odd.solution.
sort_array
Sorting ascending odd numbers but even numbers must be on their places.
Zero isn’t an odd number and you don’t need to move it. If you have an empty array, ou need to return it.
source_array –
kyu_6.sort_the_odd.test_sort_array.
SortArrayTestCase
Bases: unittest.case.TestCase
unittest.case.TestCase
Testing ‘sort_array’ function
test_sort_array
The ‘sort_array’ function.
The task is to sort ascending odd numbers but even numbers must be on their places.
Zero isn’t an odd number and you don’t need to move it. If you have an empty array, you need to return it.