Hi I have a problem I want to change numbers positions. First number will be second number, second will be first, third will be forth and forth will be third etc. This is small fragment of my input
1 20 135 154 269 288 403 422 537 556 671 690 805 824 939
958 1073 1092 1207 1226 1341 1360 1475 1494 1609 1628 1743 1762 1877 1896
2011 2030 2145 2164 2279 2298 2413 2432 2547 2566 2681 2700 2815 2834 2949
2968 3083 3102 3217 3236 3351 3370 3485 3504 3619 3638 3753 3772 3887 3906
4021 4040 4155 4174 4289 4308 4423 4442 4557 4576 4691 4710 4825 4844 4959
So the expected output will be
20 1 154 135 288 269 etc
But the problem is that, when I try to put my number into list I have something like double space or \n etc I write this
my_file = open("PN_input.txt", "r")
content = my_file.read()
content_list = content.split(" ")
my_file.close()
print(content_list)
and I get something like that, so I am not be able to go to the next step and change the position by using for example for loop
['', '', '', '1', '', '', '20', '', '135', '', '154', '', '269', '', '288', '', '403', '', '422', '', '537', '', '556', '', '671', '', '690', '', '805', '', '824', '', '939\n', '958',