Question 11 Mark
How can the range() function and for loop be used to print the numbers 10, 9, 8,..., 1 i.e. the reverse of the previous question?
Answer
View full question & answer→For i in range(10):
print(10 - i)
print(10 - i)
13 questions · timed · auto-graded