1 00:00:00,390 --> 00:00:06,300 Now for the string indexes, we want I want to show you this something no, actually, the string, 2 00:00:06,300 --> 00:00:08,810 by its nature, is a sequence of characters. 3 00:00:09,030 --> 00:00:13,800 So let's put this variable and decided, let's put ABCDE. 4 00:00:14,580 --> 00:00:24,390 OK, now, actually what is strange is it is a sequence of characters and each character has its own 5 00:00:24,390 --> 00:00:24,850 index. 6 00:00:24,870 --> 00:00:26,550 So we start with zero. 7 00:00:26,730 --> 00:00:29,670 One, two, three, four, five, six. 8 00:00:29,700 --> 00:00:32,060 OK, so actually it is like this. 9 00:00:32,430 --> 00:00:37,710 So if I print the variable, it will print everything. 10 00:00:37,860 --> 00:00:38,280 Right. 11 00:00:38,860 --> 00:00:40,290 And we already saw that. 12 00:00:40,950 --> 00:00:42,090 So is see again. 13 00:00:43,510 --> 00:00:50,830 Yeah, abcde, pfg, OK, everything working as expected, but if I put the square brackets like these 14 00:00:51,070 --> 00:00:56,780 and I booked the zero for example, now this will bring only the air character. 15 00:00:57,130 --> 00:01:03,170 So if I return here and you can see that it is a character only now let's return here. 16 00:01:03,370 --> 00:01:06,370 Now what if I type or I want to. 17 00:01:07,370 --> 00:01:16,490 To have that ABCDE only, so I would put the on here, as you can see, and put that from where to where. 18 00:01:16,610 --> 00:01:18,950 OK, so from to as this. 19 00:01:19,280 --> 00:01:23,250 So from zero to two or two. 20 00:01:23,270 --> 00:01:23,660 Three. 21 00:01:24,160 --> 00:01:33,950 OK, so like this if I return here Ron again you can see ABC, if I return again you can see that from 22 00:01:33,950 --> 00:01:35,380 zero to three by three. 23 00:01:35,690 --> 00:01:38,060 And if you can, as you can see three is not included. 24 00:01:38,300 --> 00:01:47,510 So if I want to d if I want to be included, just remove three and put three four instead, then like 25 00:01:47,510 --> 00:01:49,030 this, go here. 26 00:01:49,370 --> 00:01:51,170 And as you can see ABCDE. 27 00:01:52,060 --> 00:01:53,170 Now, another trick. 28 00:01:53,340 --> 00:02:00,400 Now, what if I want from B to the end of this, so from B, which means from one. 29 00:02:00,820 --> 00:02:01,190 OK. 30 00:02:01,780 --> 00:02:08,560 And by the way, the syntax here is N minus one, which means if it is two to four, which means I need 31 00:02:08,560 --> 00:02:14,800 to, but which means if I want to for D I want to wait for which is three four minus one which is a 32 00:02:14,800 --> 00:02:15,040 three. 33 00:02:15,260 --> 00:02:21,370 OK, so you need to add an extra number for this index. 34 00:02:21,400 --> 00:02:26,040 OK, now what if I want from the until the end of the string. 35 00:02:26,050 --> 00:02:28,090 So I just remove it like this. 36 00:02:28,090 --> 00:02:32,440 I put it one two anywhere or talks nothing. 37 00:02:32,470 --> 00:02:33,610 OK, so this one. 38 00:02:33,940 --> 00:02:37,910 Right one which is from B to the end of the string. 39 00:02:38,290 --> 00:02:39,460 So check this out. 40 00:02:40,030 --> 00:02:42,570 You can see not a.g. 41 00:02:42,610 --> 00:02:44,700 No it is b c d e f g. 42 00:02:44,920 --> 00:02:45,300 Right. 43 00:02:45,640 --> 00:02:53,020 OK, now this is just to have an overview and have a look about it so you understand that it is not 44 00:02:53,470 --> 00:02:57,520 just as is it is very elastic for you. 45 00:02:58,060 --> 00:02:59,170 OK, thanks for watching.