diff options
-rw-r--r-- | wk6/pset/sentimental-mario-more/mario.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/wk6/pset/sentimental-mario-more/mario.py b/wk6/pset/sentimental-mario-more/mario.py index 3136a7d..883e400 100644 --- a/wk6/pset/sentimental-mario-more/mario.py +++ b/wk6/pset/sentimental-mario-more/mario.py @@ -2,4 +2,16 @@ # get input using get_int # make sure the input is between 1 and 8 # print the pyramids -# +# for i in range(input - 1): + # print(" " * (input - i - 1), "#" * i + 1) + +from cs50 import get_int + +size = 0 + +while size < 1 && size > 8: + size = get_int("Height: ") + +for i in range(input - 1): + print(" " * (input - i - 1), "#" * i + 1) + |