blob: 883e40017c17b1a41904663b612f91bf6c884be4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# 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)
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)
|