Record#
- Today I learned about the range function in for loops. The range function can be configured with three parameters: start, stop, and step. The step value can be positive or negative.
CODE#
n1 = int(input("Enter the starting value you want to set:"))
n2 = int(input("Enter the stopping value you want to set:"))
n3 = int(input("Enter the step value you want to set:"))
for i in range(n1, n2, n3):
print(i)