code: def cycle(self, *args):
          
          if not args:
              raise TypeError('no items for cycling given')
          return args[self.index0 % len(args)]
docs: Cycles among the arguments with the current loop index.