• + 6 comments

    Here is Python 3 solution from my HackerrankPractice repository:

    def staircase(a):
        for i in range(1, a + 1):
            print((a - i) * ' ' + i * "#")
    
    
    n = int(input())
    staircase(n)
    

    Feel free to ask if you have any questions :)