Hi,

Today I want to show you the range function.

We can see it mostly in the for loop.

It works like this: range(start,stop,step)

  • start is not compulsory by default is 0.
  • step is not compulsory by default is 1.

The goal of this function is to do an arithmetic progression.

Have a good day !

 

 

CC BY 4.0 MASTERY 25 by aureliemartinette is licensed under a Creative Commons Attribution 4.0 International License.