Detailed Print – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
siteicon
Solved Problem#PYTHON#7139

Problem Statement - B03D-2019S-C1

Write a python method/function Swapper(Numbers) to swap the first half of the content of a list Numbers with second half of the content Numbers and display the swapped values.

Note: Assuming that the list has even number of values in it.

For example: if the list Numbers contains

[35, 67, 89, 23, 12, 45]

After swapping the list content should be displayed as

[23, 12, 45, 35, 67, 89]

Solution

Click to open popup