00:01
Welcome to this lesson.
00:03
In this lesson we'll write a python function.
00:06
We'll name it double.
00:07
That takes a list and it retains the entries of the list which is now double, which is now double dot.
00:20
So the list is given as a parameter which is lst.
00:25
I'm going to use a loop to go through.
00:27
Okay so i'm going to use a for loop.
00:29
We'll say for i in range.
00:34
Then i'll pass in the length of this list.
00:40
Okay then now i'm actually going to go this way.
00:49
I'm actually going to go through all the entries in the list.
00:54
Now i'm going to assign each of the entries with twice their initial value.
01:00
So i will say lst then put in at the i position which would be equals to two times lst at their i position.
01:19
Alright so what it simply means is that i will take the value at the i position for the entries of the list and i'm assigning them to twice the original values...