Python: Range Function Tutorial
Hi everyone, welcome back. Today, we will go over the range() function in Python and see how it works. The range() function is a common function that is capable of returning a sequence of numbers. Let’s get into it.

Range Function
Let’s see how the range function works:
for x in range(5):
print(x)Output:
0
1
2
3
4