summaryrefslogtreecommitdiff
path: root/wk6/pset/sentimental-mario-more/mario.py
blob: aaded5a6304f5cc8ee9d68030c5a1d48d6f8cd44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from cs50 import get_int


while True:
    size = get_int("Height: ")
    if size > 0 and size < 9:
        break

for i in range(size):
    print(' ' * (size - i - 1), end='')
    print("#" * (i + 1), end='')
    print("  ", end='')
    print("#" * (i + 1))


# import get_int
# 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)