Skip to content

Instantly share code, notes, and snippets.

@aidswidjaja
Created May 24, 2022 04:30
Show Gist options
  • Save aidswidjaja/93ce773d315514bbaca1faa9c2e1bf3d to your computer and use it in GitHub Desktop.
Save aidswidjaja/93ce773d315514bbaca1faa9c2e1bf3d to your computer and use it in GitHub Desktop.
#!/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