1
00:00:00,180 --> 00:00:04,760
We're doing network automation with python you often need to work with strings.

2
00:00:04,770 --> 00:00:13,560
I'm going to set my router IP equal to 1 on 2 1 6 8 1 2 what I'm going to do now is set IP to Router

3
00:00:13,590 --> 00:00:17,420
IP but I'm going to split the string.

4
00:00:17,640 --> 00:00:25,470
In other words I'm going to break it up on a dot or period so IP looks like that now it's actually a

5
00:00:25,470 --> 00:00:26,630
list.

6
00:00:26,640 --> 00:00:33,390
Notice I've broken up 1 9 2 1 6 8 1 or 2 which is a string into a list now.

7
00:00:33,540 --> 00:00:39,260
That means I can now extract for instance a value from this list.

8
00:00:39,390 --> 00:00:49,140
So let's extract the second value or the first value or the third value or the fourth value and I should

9
00:00:49,140 --> 00:00:50,660
actually do it that way.

10
00:00:50,670 --> 00:00:52,000
Notice we starting from zero.

11
00:00:53,080 --> 00:00:54,590
So here I created a string.

12
00:00:54,760 --> 00:01:03,430
I broke it up or split it based on this character and noticed it created a list which I can work with

13
00:01:03,430 --> 00:01:04,300
more easily.
