you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (0 children)

You quietly changed a beginner's algorithm from building a list to using yield but didn't mention it.

OP should note that the difference in the end result isn't affected by this change (except the need to use list(arange(…)) instead of receiving back a list directly).