атрибут sum python в списке

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