#nested_loop_example_3 :
""" To print reverse all columns and rows - 1 with star pattren
i is row and j is column"""
#method_1
#method_2 (shortcut method)
for i in range(5):
print(" "*i,"* "*(5-i))
""" To print reverse all columns and rows - 1 with star pattren
i is row and j is column"""
#method_1
#method_2 (shortcut method)
for i in range(5):
print(" "*i,"* "*(5-i))