We are passing in a list of numbers
We are passing in a list of numbers. You need to create 2 new lists in your chart, thenput all odd
numbers in one listput all even numbers in the other listoutput the odd list first, the even list second you should use the modulo operator to decide whether the number is odd or even. We provided a function for you to call that does this.
Don’t forget to define the 2 new lists before you start adding elements to them.
import sys
numbers = sys.argv[1].split(‘,’)
for i in range(0,len(numbers)):
numbers[i]= int(numbers[i])
def isEven(n) :
return ((n % 2) == 0)