diff --git a/Hackerrank/Staircase.py b/Hackerrank/Staircase.py new file mode 100644 index 00000000..fefb8921 --- /dev/null +++ b/Hackerrank/Staircase.py @@ -0,0 +1,17 @@ +#!/bin/python3 + +import math +import os +import random +import re +import sys + +# Complete the staircase function below. +def staircase(n): + for row in range(1,n+1): + print ((n - row) * ' ' + row * '#') + +if __name__ == '__main__': + n = int(input()) + + staircase(n)