1def staircase(num_stairs):
2 for stairs in range(1, num_stairs + 1):
3 print(' ' * (num_stairs - stairs) + '#' * stairs)
4
1from __future__ import print_function
2
3def staircase(num_stairs):
4 n = num_stairs - 2
5 for stairs in range(1, num_stairs):
6 print(' ' * n, '#' * stairs)
7 n -= 1
8 print('#' * num_stairs)
9