➽ Problem:-

https://www.hackerrank.com/challenges/staircase/problem

➽ Solution:-

import math

import os

import random

import re

import sys

 

N = int(input())

for i in range(1, N+1):

    x = ""

    for j in range(0, N-i):

        x = x + " "

    for j in range(0, i):

        x = x + "#"

    print(x)