I have a list and I want to iterate through it from element 1 to the end, and then finish up with element 0. Ie, essentially it's basic list iteration, except the very first element should be at the end.
I could do this with for i in range(len(myList)): and then adding 1 to i and checking for the edge case (that 's how I'd do in it C++), but was wondering if Python had some syntax which would make this concept easier to express?
for i in list[1:] + list[:1]: