UniTO/media.py
2024-10-29 09:11:05 +01:00

17 lines
464 B
Python
Executable file

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
(27, 9), # vpc
(30, 6), # progmobile
]
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)