You are viewing a single comment's thread. Return to all comments →
If you are running this code with Python 3 you need to add parenthesis for print method. However your code should run fine with Python 2.
print (' '*(n-i) + '#'*i)
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
If you are running this code with Python 3 you need to add parenthesis for print method. However your code should run fine with Python 2.