The Python range() Function

Austin Cepalia 9 Lessons 38m basics python

Python’s built-in range function is handy when you need to perform an action a specific number of times. As an experienced Pythonista, you’ve most likely used it before. But what does it do?

By the end of this course, you’ll:

  • Understand how the Python range function works
  • Know how the implementations differ in Python 2 and Python 3
  • Have seen a number of hands-on range() examples
  • Be equipped to work around some of its limitations

Let’s get cracking!

What’s Included:

Related Learning Paths:

About Austin Cepalia

Austin is a video tutorial author at Real Python. He graduated with a BS in CS from Rochester Institute of Technology in 2023, and now he writes software to support the semiconductor industry.

» More about Austin

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

Avatar image for mikesult

mikesult

Thank you Austin, this solidified my knowledge regarding range() and numpy.arange()

Avatar image for Richard Childers

Richard Childers

Good course. Clear, easy to understand, covered the basics well.

← Browse All Courses