Skip to content

Instantly share code, notes, and snippets.

@hector117
Created March 30, 2017 20:42
Show Gist options
  • Save hector117/2b90d9beb5a86dcf6290fb2dfcbe1a2a to your computer and use it in GitHub Desktop.
Save hector117/2b90d9beb5a86dcf6290fb2dfcbe1a2a to your computer and use it in GitHub Desktop.
def triangulo(t):
z = ""
a = 0
n = t
while t>0:
l.append(t)
t = t - 1
pass
for element in l:
a = a + 1
z = a * "T"
print (z)
a = n
for element in l:
a = a - 1
z = a * "T"
print(z)
#main program below
print("Problema 2 (Examen)")
l = []
t = int(input("Ingresa un número"))
triangulo(t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment