41722/how-to-use-sum-in-python
num = [1,2,3,4] s = sum(num) print(s)
sum()=sum all item in a tuple
syntax:
sum(iterble,start)
a = (1, 2, 3, 4, 5)
Thread is the smallest unit of processing that ...READ MORE
You can use it to raise errors ...READ MORE
replace() is a method of <class 'str'> ...READ MORE
In Python programming, pass is a null statement. The ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
to delete a file import os os.remove('filename') this will delete ...READ MORE
On Windows, To run a python module without typing "python", --> ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.