atrybut python sum na liście

sum(c.a for c in c_list)
Programer boi