Home /
Expert Answers /
Computer Science /
python-1-write-a-function-called-swap-li-that-takes-a-list-of-integers-as-an-argument-and-swap-pa370
(Solved): Python
1) Write a function called swap (li) that takes a list of integers as an argument and swap ...
Python
1) Write a function called swap (li) that takes a list of integers as an argument and swaps the smallest integer in the list into the 0th place. The function should not move any of the other values in the list. For example, if the following list is passed to the function, \[ l i=[4,5,7,2,3,6] \] then after the function runs, li should be, \[ l i=[2,5,7,4,3,6] \] Hint: Use a for-loop.