15 of 100 menu

Python Taskbook Level 2.5

Given a certain line, for example, like this:

'023m0df0dfg0'

Get the set of positions of all zeros in this string.

Given a string:

'abcdefg'

Remove every third character from this line. In our case, we should get the following:

'abdeg'

There is a certain list given, for example, this one:

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

Divide the sum of the elements in even positions by the sum of the elements in odd positions.

The date is given in the following format:

['2025', '12', '31']

Convert this date to the following tuple:

('31', '12', '2025')
enru