You are on page 1of 4

Pregunta 01

#Ingreso
z = ("PAISES", "PTS", "GRÁFICO ESTADÍSTICO")
n=1
p = ("Brasil", "Colombia", "Uruguay", "Chile", "Argentina", "Ecuador", "Perú",
"Paraguay", "Bolivia", "Venezuela", "*")
x = (33, 24, 23, 23, 22, 20, 18, 18, 10, 6)
lin = "-"
tam = 58
tam2 = 19
rel1 = lin * tam
#Proceso
#Salida
print ( )
print (rel1)
print ("{:>10}{:>9}{:>24}".format(z[0],z[1],z[2]))
print (rel1)
print ("{:}{:>9}{:>8}{:>39}".format (n, p[0], x[0], p[10]*33))
print ("{:}{:>11}{:>6}{:>30}".format (n+1, p[1], x[1], p[10]*24))
print ("{:}{:>10}{:>7}{:>29}".format (n+2, p[2], x[2], p[10]*23))
print ("{:}{:>8}{:>9}{:>29}".format (n+3, p[3], x[3], p[10]*23))
print ("{:}{:>12}{:>5}{:>28}".format (n+4, p[4], x[4], p[10]*22))
print ("{:}{:>10}{:>7}{:>26}".format (n+5, p[5], x[5], p[10]*20))
print ("{:}{:>7}{:>10}{:>24}".format (n+6, p[6], x[6], p[10]*18))
print ("{:}{:>11}{:>6}{:>24}".format (n+7, p[7], x[7], p[10]*18))
print ("{:}{:>10}{:>7}{:>16}".format (n+8, p[8], x[8], p[10]*10))
print ("{:}{:>11}{:>5}{:>12}".format (n+9, p[9], x[9], p[10]*6))
print (rel1)
print ( )
Pregunta 02

t = "Inventario de productos"
c1 = "Item"
c2 = "codigo"
c3 = "Descrip."
c4 = "producto"
c5 = "saldo Inic."
c6 = "Ingresos"
c7 = "salidas"
c8 = "saldo final"
e = "_"

x1 = 1
x2 = 2
x3 = 3

#Proceso

#Salida
print(t.center(110," "))
print("{:^5}{:^20}{:^6}{:^20}{:^5}{:^20}{:^6}{:^20}".format(c1,c2,c3,c4,c5,c6,c7,c8))
print(e.center(110,"_"))
print(x1)
print(x2)
print(x3)
print(e.center(110,"_"))

You might also like