WEBVTT 00:00.610 --> 00:04.650 Look back when you lecture in this lecture just talk about something different. 00:04.670 --> 00:10.130 So we need to talk about some important characters we need to talk about some escape characters and 00:10.130 --> 00:11.120 strings. 00:11.120 --> 00:17.410 So this little is for escape characters and all the other important characters say for example or a 00:17.420 --> 00:18.050 string. 00:18.050 --> 00:23.510 So let me be with evil as mining let me add the. 00:23.910 --> 00:24.550 So had. 00:24.620 --> 00:32.740 I tried to our my name and if I tried to bring that I can could easily work toward fear trying to big 00:32.760 --> 00:39.830 string always a single character that is I try to get my Nimely Schumann or we have to write big scene 00:39.860 --> 00:40.640 the lines. 00:40.820 --> 00:46.070 But what if I need to are multiple lines to my string try out. 00:46.200 --> 00:50.540 So I take a string as my this whole string. 00:51.050 --> 00:58.690 If I try to add long strings all clueless long and then I need to add backslash. 00:58.700 --> 01:06.470 So once I do that and if I enter now I can add more characters to this long string and how I can add 01:06.470 --> 01:14.630 some sambil dogs and if I also need one more line on I have to use backslash again I can add more sample 01:14.630 --> 01:20.350 packs and once I'm satisfied I don't want to add more lines. 01:20.350 --> 01:25.240 All I have to do is use the condition when my string and that's drawn. 01:25.350 --> 01:34.250 And if I try to play this my string I can see I heard multiple lines of string but all of them do seem 01:34.300 --> 01:34.860 result. 01:35.020 --> 01:37.660 So I have all three lines of string. 01:37.780 --> 01:43.080 But I got the same result as long simple text more simple text. 01:43.120 --> 01:45.490 So that was a single string line. 01:45.760 --> 01:50.270 So that was a single string line but I wrote it into two lines. 01:50.360 --> 01:52.870 What if I need to get actual lines. 01:52.870 --> 01:57.140 That is three lines of string and then printed as two lines. 01:57.140 --> 02:02.840 So let me take another string and take it as another. 02:02.900 --> 02:09.670 And if I want to leave a line all I have to do is use backslash and that means it will leave a line 02:09.760 --> 02:11.380 wide printing. 02:11.740 --> 02:13.400 So I use another. 02:13.660 --> 02:17.840 Then I need to be one line against a new line. 02:17.840 --> 02:26.020 Again I want to leave a line and then I can see the line that's like closing string and hoping that 02:31.360 --> 02:33.760 you can see I have another the new line. 02:33.770 --> 02:41.870 Then another so often and I use space that was printed here in here that was printed here. 02:42.150 --> 02:48.340 So that means if I need to leave a line I need to use slash and if I want to just leave a line but I 02:48.340 --> 02:51.910 don't want to bring that I need to use just backslash. 02:51.910 --> 02:55.140 Now let us take some real example and do the fun. 02:55.150 --> 03:01.900 What if I need to take some dietary address on me create a new table and here still my directory address 03:01.910 --> 03:03.420 that is C-drive. 03:03.880 --> 03:12.250 And then I need to get it to download Fula and then I need to put it into your samples suppose if I 03:12.250 --> 03:18.310 do that and if I try to print this particular directory you will be shocked to see that there is some 03:18.310 --> 03:28.080 mistake and see I did see the non-nude and now slash is done as Xscape character. 03:28.180 --> 03:32.370 So they left a new line and then all G-S. 03:32.380 --> 03:39.200 So here if I want to skip this all I have to do is use double slash. 03:39.250 --> 03:44.440 So that means if I use double slash it would be printed as Slash. 03:44.590 --> 03:49.210 And if I print my directory Now you can see I printed correctly. 03:49.210 --> 03:57.090 So to avoid the functionality of slash and I have to use double slash to indicate my interpreter that 03:57.150 --> 04:01.850 I'm not using slash and symbols with different functionalities. 04:01.900 --> 04:05.880 Suppose I need to use some quotation marks inside my string. 04:06.040 --> 04:07.930 Let me take a new strain. 04:07.930 --> 04:15.090 Suppose I want to write something like John said and then hello to me. 04:15.560 --> 04:22.940 So my main string was John said hello to me but if I need to use deescalation that will give me error 04:22.980 --> 04:31.510 at this point of time so I can more use to mark in a single string if I need to use them all I have 04:31.510 --> 04:33.620 to do is use a backslash. 04:33.820 --> 04:36.800 So all I the laws are a backslash. 04:36.880 --> 04:44.140 That means it would give a reference to our Python interpreter that don't consider it as the ending 04:44.140 --> 04:45.250 condition. 04:45.250 --> 04:55.280 Now if I do that there is no error and if I try to print my new string you can see John said the quotation 04:55.280 --> 04:57.100 marks hello to me. 04:57.110 --> 05:03.140 What if you can say that I should use single string instead of double and you can do that and you will 05:03.140 --> 05:07.140 get no letter. 05:07.170 --> 05:11.200 So if I do that and then print that is absolutely fine. 05:11.400 --> 05:17.750 But if I'm using single quotation marks I want to use that quotation mark inside my string was. 05:17.940 --> 05:27.660 Suppose example as my hand if I just want to write as shimp homes then so they can say I cannot use 05:27.660 --> 05:32.010 this particular slash and it will give me an error if I want to do that. 05:32.070 --> 05:34.560 All I have to use is backslash. 05:34.560 --> 05:41.180 And then I can use or petion up to that or Noyer and then I can pretty adapt. 05:41.250 --> 05:42.920 You can see that swanking. 05:42.960 --> 05:47.550 So these are escape characters you have Slash or line. 05:47.550 --> 05:54.660 We have double slash to display a single slash slash quotation mark to display a single chord. 05:54.810 --> 05:59.040 We have Slash double that minstrel display or double code. 05:59.370 --> 06:02.570 We have a backslash in the form you like. 06:02.760 --> 06:11.400 And we also have some other like backslash B for backspace backslash and enter and then we end the four 06:11.400 --> 06:13.360 always on time and word DAB. 06:13.450 --> 06:16.500 So these are really useful and you should keep them in mind.