➽ 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)
0 Comments
Please do not enter any spam link in the comment section.