>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.

You can search for even or odd numbers with the modulo (%) operant.

def my_sort(*numbers):


my_sort(X,Y,Z,F)

just trying not to tell you the excersice just to give you hints.
The best way to learn is to struggle a bit doing it yourself.
This email is confidential and may be subject to privilege. If you are not the 
intended recipient, please do not copy or disclose its content but contact the 
sender immediately upon receipt.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to