Harambe and ranges

--Originally published at Python & pugs

There are two ways in which you can use ranges in python:

1st. You’ll just simply write

x = range(10)
print(x)

And it will print all number that goes from 0 to 10.

2nd. You write almost the same thing but:

x = range(0,10,2)
print(x)

This means that the range for x will start in 0, it will end at 10, and its frequency it is of 2.

And it is easy as this.

Never forget Harambe, he was not just a gorilla.