Add the function to a PyDev module named functions.py. Test it from .
Hints:
An empty list is sorted
The index of the value out of place can never be 0.
The function does not ask for input and does no printing - that is done by your test program.
Sample execution:
Test the function with three different sets of parameters.
Use list_of_positives in your testing to get numbers from the user.

Add the function to a PyDev module named functions.py. Test it from .pdf

  • 1.
    Add the functionto a PyDev module named functions.py. Test it from . Hints: An empty list is sorted The index of the value out of place can never be 0. The function does not ask for input and does no printing - that is done by your test program. Sample execution: Test the function with three different sets of parameters. Use list_of_positives in your testing to get numbers from the user.