UniTO/media.py

17 lines
439 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
(26, 9) # vpc
]
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)