Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python range Incrementing with the range using a positive step

# welcome to softhunt.net
# incremented by 4
print('incremented by 4: ')
for i in range(2, 15, 4):
	print(i, end=" ")
print()

# incremented by 3
print('incremented by 3: ')
for i in range(2, 15, 3):
	print(i, end=" ")
print()

# incremented by 2
print('incremented by 2: ')
for i in range(2, 15, 2):
	print(i, end=" ")
print()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #range #Incrementing #range #positive #step
ADD COMMENT
Topic
Name
6+8 =