I am trying to print something like this
*
* *
* * *
* * * *
Here is my code
while 1:
n=int(input("Enter the N"))
if n<3:
print("Wrong Input")
continue
else:
for i in range(1,n+1):
for j in range(1,i+1):
print("x")
I refer to this question but I am not able to achieve this. Can you please help me how can I achieve this? Thank you