[Tutor] Help

Alan Gauld alan.gauld at yahoo.co.uk
Fri Feb 10 04:51:28 EST 2017


On 10/02/17 02:05, Sasiliyu Adetunji wrote:
> Please assist with this assignment
> 
> Write a function my_sort which takes in a list of numbers (positive
> integers).
> 
> The function should return a list of sorted numbers such that odd numbers
> come first and even numbers come last.

def my_sort(number_list):
   # your code goes here

Does that help?

If not you will need to be more specific about what help you need
and show us your code. We won't write it for you (apart from the
line above...)

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list