UniTO/media.py

18 lines
464 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-17 20:01:41 +02:00
(27, 9), # vpc
(30, 6), # progmobile
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)