Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

call a Python range() using range(start, stop, step)

# welcome to softhunt.net
# Python program to
# print all number
# divisible by 5 and 7

# using range to print number
# divisible by 5
print('divisible by 5: ')
for i in range(0, 30, 5):
	print(i, end=" ")
print()

# using range to print number
# divisible by 7
print('divisible by 7: ')
for i in range(0, 50, 7):
	print(i, end=" ")
print()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #call #Python
ADD COMMENT
Topic
Name
8+4 =