I am working a Rubik's cube assignment and I need help to complete one of the steps. I need to iterate through a list by comparing the elements and skipping every 5th element. so far I was able to find this:
newList =['0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26']
for elem in newList[ : : 5]:
print elem
using this, I only get every 5th element to be printed, which is the opposite of what I want. thanks