You are viewing a single comment's thread. Return to all comments →
Same idea!
for i in range(n): print(" "*(n-i-1)+"#"*(i+1))
Not working
I think it's not so good idea, better use format in print, like: print('%s%s' % (' ' * (n - i), '#' * i))
Staircase
You are viewing a single comment's thread. Return to all comments →
Same idea!
Not working
I think it's not so good idea, better use format in print, like: print('%s%s' % (' ' * (n - i), '#' * i))