Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/04/2013, 14:03
sukoy
 
Fecha de Ingreso: febrero-2011
Mensajes: 54
Antigüedad: 13 años, 2 meses
Puntos: 18
Respuesta: Un problema mas

Modestamente habia hecho esto:
Código Python:
Ver original
  1. n = 9
  2. z = n+1
  3. s = ''
  4.  
  5. for i in range(1,z):
  6.     s += str(i)
  7.     z -= 1
  8.     print(' '*z +s[:-1] + s[::-1])
  9. for i in range(1,n):
  10.     v = s[:-i]
  11.     print(' '*(z+i)+v[:-1]+ v[::-1])

Saludos.