I'm trying to find a simple way to shift the position of raw in python array. And here is my four array
list1 = ['0x68', '0x65', '0x6c', '0x6c']
list2 = ['0x20', '0x68', '0x69', '0x74']
list3 = ['0x6c', '0x65', '0x72', '0x68']
list4 = ['0x65', '0x6c', '0x6c', '0x20']
It will be nice if I can make a function for shift it. For example I might shift it like this
swaps the row elements among each other. It skips the first row. It shifts the elements in the second row, one position to the left. It also shifts the elements from the third row two consecutive positions to the left, and it shifts the last row three positions to the left.