Adarsh kumar rows=int(input()) for i in range(rows): for j in range(0,i+1): print(“*”,end=””) print() for i in range(1,rows): for j in range(i,rows): print(“*”,end=””) print() in python code Log in to Reply
rows=int(input())
for i in range(rows):
for j in range(0,i+1):
print(“*”,end=””)
print()
for i in range(1,rows):
for j in range(i,rows):
print(“*”,end=””)
print()
in python code