Skip to content

Instantly share code, notes, and snippets.

@ebovio
Created April 16, 2017 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebovio/16af6b272014dba9057dc0d6702955e0 to your computer and use it in GitHub Desktop.
Save ebovio/16af6b272014dba9057dc0d6702955e0 to your computer and use it in GitHub Desktop.
#Problem2
def triangle(x):
for i in range(1, x+1):
z = "T" * i
print (z)
for i in range(1, x):
x -= 1
z = "T" * x
print (z)
#MainProgramBelow
x= int(input("Write the highest value of your triangle"))
triangle(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment