Write a Python function that takes in a list of numbers, and…
Question Answered step-by-step Write a Python function that takes in a list of numbers, and… Write a Python function that takes in a list of numbers, and outputs them into two lists, one consisting of even numbers, and the other odd numbers. Generate a list with 100 random numbers in the range of 1 to 1000 and store them in the variable original_list. Hint: You can generate a list of numbers using list comprehension and the random.randint() function Define a function called oddandeven(numbers_list) that takes in one parameter of type list containing a list of numbers and returns two outputs of two lists, one that contains even numbers, and the other that contains odd numbersAfter writing your function, call the oddandeven(numbers_list) function, passing in original_list as the parameter, and storing the outputs of the function as even_numbers and odd_numbers respectivelyPrint out the contents of even_numbers and odd_numbers as shown in the output below Computer Science Engineering & Technology Python Programming CS 3002 Share QuestionEmailCopy link Comments (0)


