00:03
Okay, so let's do this one.
00:06
I just did a bunch of it and then i realized that my mic was off, so i'm going to start it over here.
00:13
So we're coming up with our own string, and then we're going to split it using split method.
00:19
So we just do my list equals my string .spring.
00:24
And so that'll turn each word into its own element of the list.
00:31
Next we're going to delete three elements.
00:33
So here, this will just delete everything up to the last element.
00:37
This will delete the last element and then this will remove the last element.
00:44
Then we're going to sort the list with sorted my list.
00:50
And then we're going to append another word just using the append method.
00:57
So we can add another element using the expand method.
01:05
Now my list looks like this.
01:14
Except when we use the extend method.
01:17
If we want to add just one element, then we're going to add a single element.
01:23
So if we want it to be a word, we can only add a one character word, because the extend will iterate over the string.
01:34
And so for this, we're just going to add one letter word.
01:39
Next, we're going to try using the insert method.
01:43
So my list dot insert.
01:46
Insert, let's do it.
01:53
And insert needs a location.
01:55
So we'll insert it at zero, and then my list starts with a.
02:05
Then to join it and print it, we can just do string, join, my list, and then print it.
02:18
And we're going to have to import this.
02:23
That is, and that didn't work.
02:29
And that's because the syntax for this is a separator string.
02:35
Dot join my list.
02:37
So each element of this list will be joined with a space in between.
02:42
I can see that being printed out here...