forked from jevalenciap/training
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudrum.py
More file actions
37 lines (28 loc) · 640 Bytes
/
audrum.py
File metadata and controls
37 lines (28 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""Minimo de tres"""
CANTIDAD = input("Cantidad de valores: ")
CANTIDAD = int(CANTIDAD)
i = 0
k = 0
SUMA = 0
SEPARAR = 0
TOTAL = []
PRIMEROS = []
SEGUNDOS = []
TERCEROS = []
while i < CANTIDAD:
VALORES = input("Ingrese los valores: ")
SEPARAR = VALORES.split()
PRIMEROS.append(SEPARAR[0])
SEGUNDOS.append(SEPARAR[1])
TERCEROS.append(SEPARAR[2])
i = i + 1
while k < CANTIDAD:
if PRIMEROS[k] < SEGUNDOS[k]:
if PRIMEROS[k] < TERCEROS[k]:
TOTAL.append(PRIMEROS[k])
else:
TOTAL.append(TERCEROS[k])
else:
TOTAL.append(SEGUNDOS[k])
k = k + 1
print TOTAL