Professional Documents
Culture Documents
Código Ejercicio 1 (Parte 1) Ejercicio 1.1
Código Ejercicio 1 (Parte 1) Ejercicio 1.1
a = [21, 48, 79, 60, 77, 15, 43, 90, 5, 49, total_sleep = d1[1] + d2[1] + d3[1] + d4[1]
15, 52, 20, 70, 55, 4, 86, 49, 87, 59] + d5[1]
total_party = d1[2] + d2[2] + d3[2] + d4[2] prom = a/len(list)
+ d5[2]
term = 0
total_hours = {'study': total_study, 'sleep':
for i in list:
total_sleep, 'party': total_party}
term = term + (i-prom)**2
print(total_hours)
Ejercicio 4.01.
std = math.sqrt (term/len(list))
for i in range (5,-1,-1):
print (i)
print(std)
Ejercicio 4.02.
import random
suma = 0
for i in range (100):
a = random.random()
suma = suma+a
print (suma)
Ejercicio 4.03.
list = []
a=0
for i in list:
a = a+i