Skip to content

Commit bd9b307

Browse files
authored
Create Staircase.py
1 parent 2d18a85 commit bd9b307

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

HackerRank-Staircase/Staircase.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/python3
2+
3+
import math
4+
import os
5+
import random
6+
import re
7+
import sys
8+
9+
# Complete the staircase function below.
10+
def staircase(n):
11+
for i in range(1, n + 1):
12+
print(' ' * (n - i) + '#' * i)
13+
14+
if __name__ == '__main__':
15+
n = int(input())
16+
staircase(n)

0 commit comments

Comments
 (0)