owo a ver de una lista de varios numeros sacar el menor y el mayor que funcione con cualquier cantidad de numeros
pd : mejore el programa de los triangulos
def traingulo(asd):
x=len(asd)
for xc in range(len(asd)):
print " "*(len(asd)-xc)+asd[xc]*xc+""+asd[xc]*xc+" "*(len(asd)-xc)
print "---------------------"
for xy in range(len(asd)):
print " "*(len(asd)+xy)+asd[xy]*(x-xy)+asd[xy]*(x-xy)+" "*(len(asd)-xc)
traingulo(raw_input())
Lo probe y sale esto...
uu
eeee
hhhhhhhh
aaaaaaaaaa
cccccccccccc
eeeeeeeeeeeeee
eeeeeeeeeeeeeeeeee
llllllllllllllllllll
cccccccccccccccccccccccc
hhhhhhhhhhhhhhhhhhhhhhhhhh
iiiiiiiiiiiiiiiiiiiiiiiiiiii
cccccccccccccccccccccccccccccc
oooooooooooooooooooooooooooooooo
tttttttttttttttttttttttttttttttttt
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
oooooooooooooooooooooooooooooooooooooooo
---------------------
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
cccccccccccccccccccccccccccccc
eeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeee
llllllllllllllllllllll
cccccccccccccccccc
hhhhhhhhhhhhhhhh
iiiiiiiiiiiiii
cccccccccccc
oooooooooo
tttttttt
aaaaaa
zzzz
Igualmente es algo que yo no eh logrado hacer, solo por falta de logica.
Si lo corregís seria un buen ejemplo python.
SALUDOSSSS