Python tips

Scroll Down
## fill zero of number
>>>a = '1'
>>>print(a)
1
>>>b = '1'.zfill(2*4)
>>>print(b)
00000001

## reverse sequence
>>>a = [0, 1, 2, 3, 4, 5]
>>>print(a[::-1])
[5, 4, 3, 2, 1, 0]