class Inf: def __iter__(self): self.start = 0 return self def __next__(self): num = self.start self.start += 2 return num
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter