To add to this, the output of the range function is a generator which generates values on the fly as opposed to having them stored in memory all at once.
Furthermore, if you replace the square brackets of a list comprehension with curved brackets, you get a generator comprehension.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
To add to this, the output of the range function is a generator which generates values on the fly as opposed to having them stored in memory all at once.
Furthermore, if you replace the square brackets of a list comprehension with curved brackets, you get a generator comprehension.