2 ms·
Great point! Was trying to keep examples simple but that just flew over my head. Updated the article. How about the new example? def squares(limit): return
by yakkomajuri 6y ago
Great point! Was trying to keep examples simple but that just flew over my head. Updated the article. How about the new example?
def squares(limit):
return [num*num for num in range(0, limit)]
If you have another suggestion I'd be happy to hear it!
- perfunctory 6y agoMuch better.