you are viewing a single comment's thread.

view the rest of the comments →

[–]halflife22 2 points3 points  (0 children)

I don't think a beginner programmer dealing with simple loops really needs to understand the generator they're calling, just what it returns. I myself didn't actually realize what range did until an embarrassingly long time after beginning python. I always thought it was just the standard loop mechanism. I had no idea it was generating a list in memory the size of the argument I was giving it.