It's important to understand the slicing syntax.
You can slice lists.
You can slice lists.
a_list = [0, 1, 2, 3, 4, 5] left_side = a_list[1:] # [1, 2, 3, 4, 5] right_side = a_list[:1] # [0] # left side is from the index 1 to the end # right side is from start to index 1 rolled_new_list = left_side + right_side # [1, 2, 3, 4, 5, 0] # + operation on two lists will return a new chained list.I still hope that someone is coming up with an itertools solution.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!