D-18 Can you please provide me the solution for this pattern program pattern9
Created 2 years ago
50
Views
3
Comments
Hi Team,
Can you please provide me with a solution for this pattern program
getting error due to white space, how can we remove space on pattern as we print based on rows and columns only. please advise
code:
n = int(input())
s=[]
for row in range(n,0,-1):
for col in range(0,row):
s.append("*")
s.append(" ")
n-=1
print(*s)
s.clear()