staircase python code example Example: right-left staircase python for i in range(1, n + 1): print(' ' * (n - i) + '#' * i)