WEBVTT 00:00.770 --> 00:02.650 Come back when you meet you in this you do. 00:02.660 --> 00:04.290 Let's talk about strings. 00:04.430 --> 00:06.800 So we have thought about basics of strings. 00:06.830 --> 00:10.760 During the lecture that I now own it is talk about strings. 00:10.780 --> 00:11.610 Indeed. 00:11.830 --> 00:18.160 So before doing anything is in this review Let us understand comments so coins are really important. 00:18.260 --> 00:21.310 As a programmer you can make your code readable. 00:21.380 --> 00:23.190 You can add innovations. 00:23.300 --> 00:29.180 And with the old school you go out a lot of explanation so very hard on your quarter. 00:29.210 --> 00:34.010 Whenever a new programmer is going to check your code is going to audit your code. 00:34.010 --> 00:37.220 It will be quite easy for them to understand your code. 00:37.340 --> 00:43.190 So there are different functions that are the matters that you might be using and you can explain them 00:43.430 --> 00:46.800 that OK this particular function can do this task. 00:46.940 --> 00:53.000 So instead of going to whole goal the order or the tester or someone who's do an audit of your code 00:53.210 --> 00:59.540 can just simply explain with the help of your coming comments are also important to make some of your 00:59.560 --> 01:01.660 code not executable. 01:01.700 --> 01:03.300 That means your word is written. 01:03.350 --> 01:04.700 You make them come in. 01:04.850 --> 01:07.280 So then the reader will not read them. 01:07.430 --> 01:11.540 And instead of deleting them you can just skip them while you are working. 01:11.690 --> 01:14.980 So without creating any delay they just write off Hosken. 01:15.230 --> 01:22.010 So all you have to do is use hash and then you can write anything in this particular line and everything 01:22.010 --> 01:26.770 that you are going to write after the hash will be considered as coming. 01:26.990 --> 01:31.570 And also it will not be executed by an interpreter. 01:31.850 --> 01:34.540 So if I write welcome to buy it onto Turion. 01:34.730 --> 01:38.220 So this is a comment I never tried to run the school. 01:38.230 --> 01:41.230 You are not going to get any and make me do that. 01:43.410 --> 01:46.840 So you can see I just run my script and I'm not getting any error. 01:46.860 --> 01:50.780 And I'm also not getting any common or instructions or anything else. 01:50.940 --> 01:53.630 So that means this line is not executed. 01:53.790 --> 01:57.930 Now let me add a few more lines of code and try to underscore on. 01:58.200 --> 02:00.970 So what I'm doing is I'm trying to add three lines. 02:00.990 --> 02:06.550 Run this file and then either try to make one line this coming and then run this file again. 02:06.780 --> 02:14.440 So if I run this fine now you can see I just couldn't output as Line 1 line 2 and 3 as my reason. 02:14.790 --> 02:21.170 And if I tried to add hash for this particular print statement and saved this file run this again mean 02:21.510 --> 02:25.990 you can see I just got nine one line three as my output. 02:26.070 --> 02:29.360 That means this print statement is not as you did. 02:29.520 --> 02:34.730 And biotin has just been that also the signalling comments are really important. 02:34.820 --> 02:37.480 Or adding a notation or explanation. 02:37.530 --> 02:44.790 So they've just added a short code so you can see just uses a hash to write some explanation and you 02:44.790 --> 02:51.030 can do that with your goal when you are a beginner once you start developing experience you will understand 02:51.030 --> 02:58.020 that these single lines explanation or comments are really important and then for now the second type 02:58.020 --> 03:01.480 of comment is used when the of three conditions. 03:01.680 --> 03:08.880 So if I want to start discussion I can use precondition Mont. then write my command and then to end 03:08.880 --> 03:09.490 this command. 03:09.510 --> 03:11.430 I need to use the quotation mark. 03:11.430 --> 03:16.480 I mean it is use for documentation and it is known as docstring. 03:16.530 --> 03:22.240 So to initiate this you need to use three codes and to end this you have to use three calls. 03:22.260 --> 03:27.220 So this docstring command is also used to admire the balance of command. 03:27.450 --> 03:33.090 So if I need to write my double lines of comments I just need to shift that records so I can add another 03:33.090 --> 03:35.380 line of code that does. 03:35.500 --> 03:37.550 And I can add more lines. 03:38.050 --> 03:42.060 So you can see all these lines of commands and they will not be executed. 03:42.220 --> 03:48.770 So this is actually used to write my lines of explanation for any function method or anything. 03:48.970 --> 03:54.940 So once you start writing a good program so you can write the documentation of that program people when 03:54.940 --> 03:56.060 it does somebody. 03:56.080 --> 03:58.410 So this is basically used for that. 03:58.600 --> 04:02.220 And you can also use to write multiple lines of code. 04:02.620 --> 04:05.430 So you just need to add hash for each line. 04:05.770 --> 04:09.110 Let me clear this up and add a small code. 04:09.200 --> 04:12.070 So I'm back with my small board again. 04:12.190 --> 04:17.860 So this is my code and if I want to change any line into my comment all I have to do is select that 04:17.860 --> 04:19.030 particular line. 04:19.030 --> 04:22.120 Now use control and then slash. 04:22.120 --> 04:25.620 If I click that that line would be converted into a command. 04:25.810 --> 04:31.780 So if I need to do with multiple lines all I have to do is select these multiple lines and then control 04:31.870 --> 04:35.580 and then slash all the lines and we change into my coming. 04:35.590 --> 04:37.610 So this is one of the good practice. 04:37.690 --> 04:43.540 And once you start writing more calls and once you start solving more problems you will understand more 04:43.630 --> 04:44.690 type of kind. 04:44.830 --> 04:49.260 So the first one a single line and the second one is my line docstring command. 04:49.500 --> 04:51.840 So in the next lecture not just for form. 04:51.850 --> 04:53.490 A lot more time with Astron.