What does xrange do in python?? And how do I implement a similar function in Python3??
king_koder
0
Light Poster
Recommended Answers
Jump to PostIn a terminal:
$ pydoc xrange class xrange(object) | xrange([start,] stop[, step]) -> xrange object | | Like range(), but instead of returning a list, returns an object that | generates the numbers in the range on demand. For looping, this is | slightly faster than range() …
All 3 Replies
Gribouillis
1,391
Programming Explorer
Team Colleague
Utopia_Tz
0
Newbie Poster
Gribouillis
1,391
Programming Explorer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.