Created
October 17, 2020 07:16
-
-
Save Saarth-Jain/8df7dcbb1eefbebd82bea137b71ca537 to your computer and use it in GitHub Desktop.
CS50 Solution pset6 mario less comfortable version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cs50 import get_int | |
s = 0 | |
while (s < 1 or s > 8): | |
s = get_int("Height: ") | |
blankspaces = s | |
hashes = 0 | |
for i in range(s): | |
blankspaces -= 1 | |
hashes += 1 | |
print(" " * blankspaces, end="") | |
print("#" * hashes, end="") | |
print("") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment