Sum of elements stored inside a tuple

后端 未结 5 680
小蘑菇
小蘑菇 2021-01-12 03:48

Given a tuple containing a bunch of integer elements, how can one find the sum of all the elements?

For example, if I have a list of tuples:

li = [(1         


        
5条回答
提交回复
热议问题