In the previous lesson, you learned how to iterate or loop over a collection of data in the form of a list. That was great for your small list of names, but what if you want to generate a list of numbers? To do that, you can use the built-in
There are three ways you can call
range(stop)takes one argument.
range(start, stop)takes two arguments.
range(start, stop, step)takes three arguments.