Question: modify the mergeOdds(l1, l2) method so that the method returns a new list with all the odd numbers from two list sorted in ascending order.

modify the mergeOdds(l1, l2) method so that the method returns a new list with all the odd numbers from two list sorted in ascending order. 
def merge_odds(l1, l2): odds = [] return odds l1 = [2,1,5,7,9] l2 = [32,33,13] odds = merge_odds(l1, l2) print(odds)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!