The Python range() Function - Real Python
The Python range() Function
Austin Cepalia 9 Lessons 38m basics pythonPython'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
rangefunction 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:
- 9 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- Accompanying Text-Based Tutorial
- 2 Hands-On Coding Exercises
- Q&A With Python Experts: Ask a Question
- Certificate of Completion
Related Learning Paths:
Start NowThe Python range() Function
9 Lessons 38m
- 1. The Python range() Function: Overview 01:04
- 2. Looping: Definite Iteration 03:46
- 3. The Basics of range() 07:27
- 4. Decrementing With range() 02:25
- 5. Advanced Uses of range() 03:02
- 6. Exercise: Count Down With range() 08:00
- 7. Working With Floats 03:38
- 8. Exercise: Generate the First Even Numbers 08:00
- 9. The Python range() Function: Recap 01:15
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 AustinEach 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:
Dan
Joanna
Sadie
Tappan
Geir Arne
Jon
David
Adriana
Krystal
Leodanis
Bartosz
Kate
Brenda
mikesult
Thank you Austin, this solidified my knowledge regarding range() and numpy.arange()
Richard Childers
Good course. Clear, easy to understand, covered the basics well.