code: def cycle(self, *values):
          
          if not values:
              raise ValueError("You must provide values to cycle through")
          return values[self.index % len(values)]
docs: Cycle through values as the loop progresses.