25 | Pattern stair-step
What it is is:
stair_step_pattern.py
# This program displays a stair-step pattern.
NUM_STEPS = 6
for r in range(NUM_STEPS):
for c in range(r):
print(' ', end='')
print('#')
What it is is:
stair_step_pattern.py
# This program displays a stair-step pattern.
NUM_STEPS = 6
for r in range(NUM_STEPS):
for c in range(r):
print(' ', end='')
print('#')