Introduction
Ranges let you easily repeat actions for a set of numbers without writing extra code. They make loops simple and clear.
When you want to count from 1 to 10 and do something each time.
When you need to check every number between two values.
When you want to run a loop a fixed number of times.
When you want to create a list of numbers quickly.
When you want to step through numbers with a specific gap, like every 2 or 3.