#nested_loop_example_4 :
""" To print left half pyramid with star pattren program
i is row and j is column"""
#method_1
#method_2 (shortcut method)
n = int(input("Enter the value: "))
for i in range(n):
print(" "*(n-(i+1)),"* "*(i+1))
""" To print left half pyramid with star pattren program
i is row and j is column"""
#method_1
#method_2 (shortcut method)
n = int(input("Enter the value: "))
for i in range(n):
print(" "*(n-(i+1)),"* "*(i+1))