Python Taskbook Level 2.6

Задание 1

Given a string of letters and numbers, get a list of positions of all the numbers in that string.

Задание 2

Given a string:

python'AbCdE'

Change the case of the letters in this line to the opposite. In our case, it should look like this:

python'aBcDe'
Задание 3

Given a list of numbers, for example, like this:

python[1, 2, 3, 4, 5, 6]

Merge pairs of elements together:

python[12, 34, 56]
Задание 4

There is a certain line with the words:

python'aaa bbb ccc eee fff'

Capitalize the first character of every other word in that line. In our case, it should look like this:

python'aaa Bbb ccc Eee fff'