I’m new around programming stuff :/
I need to make a function that retrieve the sum of the first element from a 3-tuple list.
I have something like:
tuples = [(11,"11","11"),(22,"22","22"),(33,"33","33"),(44,"44","44"),(55,"55","55"),(66,"66","66")]
And I need the sum of the first element of each 3-tuple from the list. = 11+22+33+44+55
Pattern matching maybe? map?
Use
sumwith a list comprehension: