Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
https://repl.it/C9dx/0 created by charles2588
#Staircase builder
n=5
startforhash=n-1
str=""
for i in range(n):
for j in range(n):
if(j>=startforhash):
str+="#"
else:
str+=" "
print(str)
str=""
startforhash-=1
Python 3.5.1 (default, Dec 2015, 13:05:11)
[GCC 4.8.2] on linux
>>> #
##
###
####
#####
=> None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.