It looks like you are trying to group a tuple into pairs and then drive them out of these pairs. There are two ways to do this.
The first is clipping:
zip(t[::2], t[1::2])
" ", start:stop:step. - ::2, ( ) ( ) 2, 0, 2 4. - 1::2, , 1 , 1, 3 5.
. Lists. (, , , ).
-, :
i = iter(t)
zip(i, i)
i , , , . , # 0, # 1, # 2, # 3 ..
. Iterators. . a > , (, , ).
('a', 'b'), ('c', 'd'), ('e', 'f'), dict:
dict(zip(t[::2], t[1::2]))
, ?
, , . .
, , (, , ), .
, , .