UniTO/media.py

19 lines
486 B
Python
Raw Normal View History

2020-06-04 23:48:32 +02:00
voti = [
(28, 6), # algoritmi e compl
(30, 9), # visual. reti compl.
(29, 9), # basi dati
(29, 12),# sicurezza + reti
(30, 6), # gestione reti
(29, 6), # economia
(28, 6), # logica
(24, 9), # ling. formali
(30, 6), # mcad
(30, 6), # scpd
2020-06-10 16:36:17 +02:00
(27, 9), # vpc
(30, 6), # progmobile
(28, 6) # meo
2020-06-04 23:48:32 +02:00
]
crediti, voto = sum(map(lambda x: x[1], voti)), sum(map(lambda x: x[0]*x[1], voti))
print(voto/crediti, voto/crediti/30*110, crediti)