How to generate a sequence of numbers in Python
• 0 minIt is often useful to have a sequence of numbers in Python.
Using the built-in range() method your can generate a sequence of numbers.
It is often used with loops like that :
Adding steps
You can also add a step value, so that it doesn't increment by one but by the step value.
Here is an example
Here you are ! You now know how to generate a sequence of numbers in Python !