79235324

Date: 2024-11-28 21:26:18
Score: 1
Natty:
Report link

If you just want to run through a list once starting at a particular point you can do:

my_list = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
start_index = 4

for i in my_list[start_index:]+my_list[:start_index]:
    print(i)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: start up