News for hackers. Stuff that matters.
Re:Unconditional loops are unconditionally awesome by jfrd on Monday January 18, 2021 @10:45PM (#25829769)
You could use a co-routine to generate the magic numbers. Something like this:

  def gen_magic_nums():
     for i in range(100):
        yield i**2

  for num in gen_magic_nums():
     add_to_plot(num)

There are no comments on this comment yet.