[Tutor] Help
Joaquin Alzola
Joaquin.Alzola at lebara.com
Fri Feb 10 04:33:02 EST 2017
>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.
More information about the Tutor
mailing list