Question 13 Marks
WAP in python to create the duplicate copy of the list.
11 questions · timed · auto-graded
Note: Show the status of all the elements after each pass very clearly underlining the changes. 152, 104, -100, 604, 190, 204
152, 104, -100, 604, 190, 204
pass-I
| 152 | 104 | –100 | 604 | 190 | 204 |
| 152 | 104 | –100 | 604 | 190 | 204 |
| 152 | 104 | –100 | 604 | 190 | 204 |
| 152 | 104 | 604 | –100 | 190 | 204 |
| 152 | 104 | 604 | 190 | –100 | 204 |
| 152 | 104 | 604 | 190 | 204 | –100 |
pass-II
| 152 | 104 | 604 | 190 | 204 | –100 |
| 152 | 104 | 604 | 190 | 204 | –100 |
| 152 | 604 | 104 | 190 | 204 | –100 |
| 152 | 604 | 104 | 190 | 204 | –100 |
| 152 | 604 | 190 | 104 | 204 | –100 |
| 152 | 604 | 190 | 204 | 104 | –100 |
pass-III
| 152 | 604 | 190 | 204 | 104 | –100 |
| 604 | 152 | 190 | 204 | 104 | –100 |
| 604 | 190 | 152 | 204 | 104 | –100 |
| 604 | 190 | 204 | 152 | 104 | –100 |
For example:
if L =[1,-2,3,4,-5,7] ,
Then the output should be: [-2,-5,3,4,7]