try this,
import sys
for j in range (0,n):
for i in range (n-j+1):
sys.stdout.write(' ');
for k in range (j+1):
sys.stdout.write('#');
print()
1
solved python 3.6.1 ‘FOR LOOP’
try this,
import sys
for j in range (0,n):
for i in range (n-j+1):
sys.stdout.write(' ');
for k in range (j+1):
sys.stdout.write('#');
print()
1
solved python 3.6.1 ‘FOR LOOP’