00:01
Hello, welcome to this lesson and this lesson will define a python function.
00:06
We call it some list that would take a list of integers and we would return the sum of the items, the sum of the elements in that list.
00:19
So let's have sum which would be initialized to zero.
00:25
Then we are going to use a for loop to go through the list.
00:30
So for i in the list, we will say sum plus equals to the items.
00:38
Alright, so after we are done, we're going to simply return the sum.
00:48
Alright, so that is pretty much all that we'll do.
00:52
We're going to use the main method to test this.
00:55
We're main, then we'll have a list, which will be some random integers.
01:21
Alright, then we are simply going to print the sum list, then you will simply pass the sum...