for item in ["a", "b", "c"]: for i in range(4): # 0 to 3 for i in range(4, 8): # 4 to 7 for i in range(1, 9, 2): # 1, 3, 5, 7 for key, val in dict.items(): for index, item in enumerate(list):