range(-1) python code example
Example 1: when do we use *range in python
print([*range(20)]) #will give all numbers 1 to 19 in a list
Example 2: range() python
#can be used a sequence of numbers
x = range(6)
print(x)
#Outputs 0 1 2 3 4 5
for i in range(start,finish ,step)
#gives range of numbers
#start is optional default is 0
#finish needed specifying when to stop
#step is incremetntaition of jump also optional