sum()=sum all item in a tuple
syntax:
sum(iterble,start)
iterable |
required. The sequence to sum |
start |
optional. A value that is added to the return value
|
a = (1, 2, 3, 4, 5)
x = sum(a, 7)
print(x)
output:22
if you are interested to learn to python than you can learn python because python is very easy language and less line of code as compare of other language . its syntax is very simple .