#Reverse Pyramid Using Python www.codewithcurious.comdef ReversedPyramid(rows):
k = 2* rows -2for i in range(rows,-1,-1):
for j in range(k,0,-1):
print(end=" ")
k = k +1for j in range(0, i+1):
print("*", end=" ")
print("\n")rows = 5ReversedPyramid(rows)