Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/05/2013, 09:02
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: enredado en python

Bienvenido te aconsejo que uses el tag highlight solamente escribe:


[HIGHLIGHT="Python"]
[/HIGHLIGHT]


Y adentro del tag tu código.

¿Que quieres hacer exactamente?

¿Quieres encontrar el máximo?
Código Python:
Ver original
  1. def main ():
  2.     lista = [1,2,3,4,5,6,7,8,9,10]
  3.     print max(lista)
  4.  
  5.  
  6. main()

¿Quieres encontrar el máximo?
Código Python:
Ver original
  1. def main ():
  2.     lista = [1,2,3,4,5,6,7,8,9,10]
  3.     print max(lista)
  4.  
  5.  
  6. main()

¿Quieres encontrar el mínimo?
Código Python:
Ver original
  1. def main ():
  2.     lista = [1,2,3,4,5,6,7,8,9,10]
  3.     print min(lista)
  4.  
  5. main()

Otra cosa te sugiero leer las FAQs
http://www.forosdelweb.com/f130/faqs...3/#post2994296
http://www.forosdelweb.com/f130/faqs...3/#post3230440