How to make arithmetic progression in Python [For beginners]
I will explain how to make arithmetic progression in Python.
If you're not familiar with Python in the first place, read an article that explains what Python is and get a better understanding.
This article is based on the contents of the TechAcademy online boot camp Python course.
How to make arithmetic progression
Arithmetic progression is a sequence with the same difference from the adjacent value (term).For example, the following sequence.
10, 20, 30, 40, 50, ...
There are several ways to create arithmetic progressions in Python.
How to use range
range (start, end, step)
Create a sequence with step differences in the range from start to end-1.The return value will be range type.
How to use NumPy arange
numpy.arange (start, end, step, ...