Please Use Python ## Given the stubs for the following function ## and the main program, complete the implementation. ## Finish the assert statement to properly ## assert the result shown below (be...


Please Use Python


## Given the stubs for the following function
## and the main program, complete the implementation.
## Finish the assert statement to properly
## assert the result shown below (be careful
## with the types of the variables).




def get_list_odd(): """ Given a list of numerical values, return a new list that contains the odd elements on the list. If the list is empty, return -1. For example, if the list contains [10, 1, 6, 3, -1, 5, 9] the function returns [1, 3, -1, 5, 9] """ pass


if __name__ == "__main__":
    ### Write 3 assert statements
    ### to test the function
    assert ...



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here