class Inf: def __iter__(self): self.start = 0 return self def __next__(self): num = self.start self.start += 2 return num