Question
Write a function find_odd_numbers( ) that takes one input parameter, numbers, which is of the type list and it contains a list of integers. Your
Write a function find_odd_numbers( ) that takes one input parameter, numbers, which is of the type list and it contains a list of integers. Your function will have to extract only odd integers from numbers and put them into a new_list named odd_num and return this new list.
For example: >>> print (find_odd_numbers([1,2,3,4,5,6,7,8,9,10]))
[1, 3, 5, 7, 9]
>>> print (find_odd_numbers([-1,-3,4,6,8,-11,11,10]))
[-1, -3, -11, 11]
>>> print (find_odd_numbers([1,1,1,1]))
[1, 1, 1, 1]
>>> print (find_odd_numbers([2,4,6,8,10]))
[ ]
Hint: Use append( ) to add new item to a list
Note: Using Python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started