1 00:00:07,670 --> 00:00:10,820 Now let's see how we can deal with the strings. 2 00:00:11,180 --> 00:00:12,530 Let's do some operations. 3 00:00:12,720 --> 00:00:19,310 So first of all, I will create a string called Martin Y equals. 4 00:00:22,080 --> 00:00:29,280 I love programming and I will learn fast. 5 00:00:30,830 --> 00:00:33,590 And now we can work a little bit with this shrink. 6 00:00:34,070 --> 00:00:38,750 So let's first try to make all the letters capital. 7 00:00:39,440 --> 00:00:46,390 You can do this by simply writing print Martin White, not apart. 8 00:00:46,520 --> 00:00:50,110 You can see that all the letters are uppercase. 9 00:00:50,330 --> 00:00:53,600 Let's now do all of them lower extract yourself. 10 00:00:54,380 --> 00:00:55,320 It makes sense. 11 00:00:56,150 --> 00:00:57,170 So print. 12 00:00:58,460 --> 00:00:59,780 Martin, why don't. 13 00:01:00,870 --> 00:01:08,610 Lower in here, you can see that all the cases are now lower than this, create one other statement. 14 00:01:08,610 --> 00:01:14,400 And here I will show you how you can find a specific letter inside your shrink now. 15 00:01:14,400 --> 00:01:14,760 Right. 16 00:01:15,210 --> 00:01:19,920 Print Martin away, though, to find Jim. 17 00:01:20,070 --> 00:01:22,200 And let's see what is going to be the result here. 18 00:01:22,590 --> 00:01:29,190 So you can see that the system says that we have the liturgy on the 10th position. 19 00:01:29,430 --> 00:01:34,580 OK, so then position means that the first in our shrink is on that position. 20 00:01:35,040 --> 00:01:38,460 And this is because so I is equal to zero. 21 00:01:38,580 --> 00:01:44,380 Then we have one, two, three, four, five, six, seven, eight, nine. 22 00:01:44,640 --> 00:01:47,790 And here you can see that the U.S. on the tenth position. 23 00:01:48,030 --> 00:01:51,060 OK, so that's why we see the number 10. 24 00:01:51,510 --> 00:01:53,340 And this is how the government works. 25 00:01:53,550 --> 00:01:56,780 Then let's see how we can replace things in our string. 26 00:01:57,240 --> 00:01:58,830 So I'm going to write. 27 00:01:59,880 --> 00:02:03,360 Print then Martin White. 28 00:02:05,790 --> 00:02:07,680 Not replace. 29 00:02:10,540 --> 00:02:16,890 And here you can see that first we need to specify the old name, then the new name and finally the 30 00:02:16,900 --> 00:02:24,670 count, since we want to do this only once I remove the count and let's write the code name. 31 00:02:24,700 --> 00:02:26,010 So this will be law. 32 00:02:26,950 --> 00:02:34,570 So the love I would like to replace with, just like, OK, so let's see how this would work. 33 00:02:34,720 --> 00:02:40,940 And you can see that now here the word love is replaced with the just like programming language. 34 00:02:41,260 --> 00:02:43,780 This how you replace drinks and python. 35 00:02:44,320 --> 00:02:47,560 So now let's try to find the whole word. 36 00:02:48,010 --> 00:02:50,560 So I'll write print Martin away. 37 00:02:52,310 --> 00:02:53,330 Both fined. 38 00:02:54,700 --> 00:02:56,260 Then in the brackets, let's right. 39 00:02:58,550 --> 00:03:05,000 Programming, so let's see if we want to find not a single character, but the whole story, so you 40 00:03:05,000 --> 00:03:07,190 can see that now we're getting the number seven. 41 00:03:07,490 --> 00:03:11,830 And this is because since we rolled, the whole world worked. 42 00:03:12,020 --> 00:03:18,440 This means that we'll give the character or the position of the character, which is on the first place 43 00:03:18,440 --> 00:03:19,190 in this world. 44 00:03:19,670 --> 00:03:27,940 And this is and you remember, so iso zero one, two, three, four, five, six, seven. 45 00:03:28,310 --> 00:03:31,100 And for that reason, we're getting the number seven here.