Print numbers from 10 to 1 in reverse order Dry Run in PYTHON

Print numbers from 10 to 1 in reverse order is an interactive PYTHON dry run visualizer from the For programs section. Study the source code, then use the execution controls to follow each step, variable update, highlighted line, and console output.

This page provides a browser-based dry run with source-code highlighting, auto-scroll, voice narration controls, and execution output for learning the program step by step.

Print numbers from 10 to 1 in reverse order Program Code

# Method 1: Using negative step
print("Numbers from 10 to 1:")
for i in range(10, 0, -1):
    print(i, end=" ")

# Method 2: Using reversed() function
print("\n\nUsing reversed():")
for i in reversed(range(1, 11)):
    print(i, end=" ")
print()

View the complete For programs page.

Program Console Print numbers from 10 to 1 in reverse order Topic: PYTHON Vignaankosh.com
Execution Panel
Step 0/0
Console is empty.