Created
May 24, 2022 04:30
-
-
Save aidswidjaja/93ce773d315514bbaca1faa9c2e1bf3d to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/python3 | |
import sys | |
potato = int(sys.argv[1]) # no input validation plz don't be mean | |
i = 1; | |
while i <= potato: | |
spaces = potato - i | |
print(" " * spaces, end='') | |
print("#" * i, end='') | |
i += 1 | |
print("\r") # carriage return for each level | |
print("sussy boi") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment