sum(iterable , start )
iterable :input iterable
start : Optional , number to be added to after getting the sum of elements.

Return the sum of the elements plus start if available.

Using list
print(sum(my_list)) # 8
Using tuple
print(sum(my_tuple)) # 8
Using start ( Optional )
print(sum(my_list,5)) # 16 
max() Iterator any()

Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 All rights reserved worldwide Privacy Policy Disclaimer