The most common answer for the 5.2.5 Counting 10 to 100 by Tens CodeHS is:
for i in range(1, 11):
print(10 * i)
This code for counting from 10 to 100 by tens is correct and will work as intended. The range(1, 11)
function generates numbers from 1 to 10, and within the loop, each number is multiplied by 10 before being printed.
When this code is run, it will output:
10
20
30
40
50
60
70
80
90
100
This is an efficient way to count by tens up to 100 in Python.