Writing a loop with a step size 10, to print out all 2-digit numbers ending in 7 in increasing order in python

Question:

Write a program, using a for loop with step size 10, to print out all 2-digit numbers which end in 7, in increasing order

I have no idea where to start, or how to do this. help please!

Asked By: Inayah Habib

||

Answers:

range

range(stop)

range(start, stop[, step])

>>> for n in range(17, 100, 10):
        print n

        
17
27
37
47
57
67
77
87
97
Answered By: jamylak
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.