Skip to content

Instantly share code, notes, and snippets.

@oofdere
Created February 9, 2020 00:35
Show Gist options
  • Save oofdere/21c3da07985fdf508d3f0cf6c9e5f782 to your computer and use it in GitHub Desktop.
Save oofdere/21c3da07985fdf508d3f0cf6c9e5f782 to your computer and use it in GitHub Desktop.
height = int(input("Enter triangle height: "))
for i in range(-height, height, 1):
print((height - abs(i)) * "*")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment