PythonBuilt-inrange
isinstance

rangeBuilt-in

str

Returns an immutable sequence of integers.

Syntax

range(stop)

Example

Enter values below to update the example in real time.

for
print
list
for i in range(5):
    print(i, end=" ")  # 0 1 2 3 4

print(list(range(2, 10, 2)))  # [2, 4, 6, 8]