WEBVTT 1 00:00:01.720 --> 00:00:04.450 ok so lets talk about that sneaky 2 00:00:04.450 --> 00:00:06.609 method i mentioned it does involve ok so lets talk about that sneaky 3 00:00:06.609 --> 00:00:08.050 thinking about things slightly method i mentioned it does involve 4 00:00:08.050 --> 00:00:10.300 differently and a clue again was in that thinking about things slightly 5 00:00:10.300 --> 00:00:11.980 comment that i added down here in line differently and a clue again was in that 6 00:00:11.980 --> 00:00:14.440 42 unless the final character in the comment that i added down here in line 7 00:00:14.440 --> 00:00:16.570 string was a period so the question is 42 unless the final character in the 8 00:00:16.570 --> 00:00:18.999 what would happen if we made sure that string was a period so the question is 9 00:00:18.999 --> 00:00:20.589 the final character in the input string what would happen if we made sure that 10 00:00:20.589 --> 00:00:22.089 was a period the final character in the input string 11 00:00:22.089 --> 00:00:24.249 well two things would happen the for loop was a period 12 00:00:24.249 --> 00:00:26.230 would always execute at least once well two things would happen the for loop 13 00:00:26.230 --> 00:00:28.210 because there would be at least one would always execute at least once 14 00:00:28.210 --> 00:00:30.939 character in the input string also would because there would be at least one 15 00:00:30.939 --> 00:00:33.130 be no need for that final test because character in the input string also would 16 00:00:33.130 --> 00:00:35.410 if the final character is a period than be no need for that final test because 17 00:00:35.410 --> 00:00:37.180 the previous segments details would if the final character is a period than 18 00:00:37.180 --> 00:00:39.100 always be printed so let's see how that the previous segments details would 19 00:00:39.100 --> 00:00:40.750 would actually work always be printed so let's see how that 20 00:00:40.750 --> 00:00:42.190 first I'm going to start by commenting would actually work 21 00:00:42.190 --> 00:00:47.260 out this final if statement and first I'm going to start by commenting 22 00:00:47.260 --> 00:00:48.250 also going to comment out the out this final if statement and 23 00:00:48.250 --> 00:00:49.990 initialization to the character variable also going to comment out the 24 00:00:49.990 --> 00:00:51.100 on line initialization to the character variable 25 00:00:51.100 --> 00:00:54.760 32 now if we're making sure that the for on line 26 00:00:54.760 --> 00:00:57.400 loop executes at-least once then we 32 now if we're making sure that the for 27 00:00:57.400 --> 00:00:58.840 don't need to make sure the character loop executes at-least once then we 28 00:00:58.840 --> 00:01:00.220 has a value so that's why I'm commenting don't need to make sure the character 29 00:01:00.220 --> 00:01:02.740 that out so at this point we really need has a value so that's why I'm commenting 30 00:01:02.740 --> 00:01:05.409 to do is append a full stop that out so at this point we really need 31 00:01:05.409 --> 00:01:07.870 sorry period to whatever the user types to do is append a full stop 32 00:01:07.870 --> 00:01:11.020 in so down here under line 28 i'm going sorry period to whatever the user types 33 00:01:11.020 --> 00:01:15.610 to type.... in so down here under line 28 i'm going 34 00:01:15.610 --> 00:01:18.040 and again I won't run through all the tests to type.... 35 00:01:18.040 --> 00:01:19.900 because I've done that and with one and again I won't run through all the tests 36 00:01:19.900 --> 00:01:21.550 exception they all produce exactly the because I've done that and with one 37 00:01:21.550 --> 00:01:23.890 same results I will make sure that running exception they all produce exactly the 38 00:01:23.890 --> 00:01:25.600 the program and entering blank input works same results I will make sure that running 39 00:01:25.600 --> 00:01:29.080 so lets do that the program and entering blank input works 40 00:01:29.080 --> 00:01:31.690 press enter we are now correctly getting the so lets do that 41 00:01:31.690 --> 00:01:32.979 message segment one contains zero press enter we are now correctly getting the 42 00:01:32.979 --> 00:01:35.500 characters whereas before course we need message segment one contains zero 43 00:01:35.500 --> 00:01:38.799 that optional code on line 44 and 45 to characters whereas before course we need 44 00:01:38.799 --> 00:01:41.620 get that working let's also try single that optional code on line 44 and 45 to 45 00:01:41.620 --> 00:01:43.540 segment I'm going to run it again and get that working let's also try single 46 00:01:43.540 --> 00:01:47.380 just enter 8 for the input segment one segment I'm going to run it again and 47 00:01:47.380 --> 00:01:49.479 contains one character that also works just enter 8 for the input segment one 48 00:01:49.479 --> 00:01:53.140 and try... contains one character that also works 49 00:01:53.140 --> 00:01:56.049 that's also working but the exception is and try... 50 00:01:56.049 --> 00:01:58.330 any input that already ends in a period that's also working but the exception is 51 00:01:58.330 --> 00:02:00.220 so if we actually run that again any input that already ends in a period 52 00:02:00.220 --> 00:02:08.349 ....and again a period on the so if we actually run that again 53 00:02:08.349 --> 00:02:09.800 end ....and again a period on the 54 00:02:09.800 --> 00:02:12.200 so you got segment 1234 which is end 55 00:02:12.200 --> 00:02:14.420 correct but this modified program now so you got segment 1234 which is 56 00:02:14.420 --> 00:02:16.130 displays the results for a fifth segment correct but this modified program now 57 00:02:16.130 --> 00:02:19.820 containing 0 characters now that's displays the results for a fifth segment 58 00:02:19.820 --> 00:02:22.310 arguably more correct but if you want containing 0 characters now that's 59 00:02:22.310 --> 00:02:24.080 exactly the same behavior as we had arguably more correct but if you want 60 00:02:24.080 --> 00:02:26.270 previously then you just check that the exactly the same behavior as we had 61 00:02:26.270 --> 00:02:27.830 input string didn't already end with a previously then you just check that the 62 00:02:27.830 --> 00:02:30.020 full stop then only trying to append one if it input string didn't already end with a 63 00:02:30.020 --> 00:02:30.920 didn't full stop then only trying to append one if it 64 00:02:30.920 --> 00:02:32.360 the important thing here though is didn't 65 00:02:32.360 --> 00:02:33.740 thinking about the problem slightly the important thing here though is 66 00:02:33.740 --> 00:02:37.310 differently can lead to simple code now thinking about the problem slightly 67 00:02:37.310 --> 00:02:39.200 we haven't covered how to check the last differently can lead to simple code now 68 00:02:39.200 --> 00:02:41.120 character in the string so don't we haven't covered how to check the last 69 00:02:41.120 --> 00:02:43.340 worry about that bit i'm going to make character in the string so don't 70 00:02:43.340 --> 00:02:45.050 the change to check the final character worry about that bit i'm going to make 71 00:02:45.050 --> 00:02:47.960 just to satisfy the curious so let's go the change to check the final character 72 00:02:47.960 --> 00:02:51.050 ahead and do that so up here we're just to satisfy the curious so let's go 73 00:02:51.050 --> 00:02:52.700 going to change this code and put.... ahead and do that so up here we're 74 00:02:52.700 --> 00:02:56.540 .... going to change this code and put.... 75 00:02:56.540 --> 00:03:06.260 .... .... 76 00:03:06.260 --> 00:03:08.450 ....now we'll be covering .... 77 00:03:08.450 --> 00:03:10.640 that in the course soon if you run that ....now we'll be covering 78 00:03:10.640 --> 00:03:11.360 again that in the course soon if you run that 79 00:03:11.360 --> 00:03:17.840 ...we now again 80 00:03:17.840 --> 00:03:19.850 correctly get the results and the fifth ...we now 81 00:03:19.850 --> 00:03:21.860 segment is now no longer showing that's correctly get the results and the fifth 82 00:03:21.860 --> 00:03:24.530 because we're only adding the period if segment is now no longer showing that's 83 00:03:24.530 --> 00:03:27.260 it is not already one there now before i because we're only adding the period if 84 00:03:27.260 --> 00:03:28.489 finish this video there is one more it is not already one there now before i 85 00:03:28.489 --> 00:03:30.290 thing that I want to mention and I'm finish this video there is one more 86 00:03:30.290 --> 00:03:32.030 sort of Crow barring this in here thing that I want to mention and I'm 87 00:03:32.030 --> 00:03:33.830 because it was covered in the previous sort of Crow barring this in here 88 00:03:33.830 --> 00:03:36.680 version of this video and incidentally because it was covered in the previous 89 00:03:36.680 --> 00:03:38.510 I re recorded this video and version of this video and incidentally 90 00:03:38.510 --> 00:03:39.470 the previous one I re recorded this video and 91 00:03:39.470 --> 00:03:40.760 after listening to comments from the previous one 92 00:03:40.760 --> 00:03:42.800 students so I'm going to make a slight after listening to comments from 93 00:03:42.800 --> 00:03:44.900 change to the code so that i can still students so I'm going to make a slight 94 00:03:44.900 --> 00:03:47.090 cover this next bit so forgive me if change to the code so that i can still 95 00:03:47.090 --> 00:03:49.550 this is a slightly contrived way to lead cover this next bit so forgive me if 96 00:03:49.550 --> 00:03:52.880 into it so what we are going to do is copy the this is a slightly contrived way to lead 97 00:03:52.880 --> 00:03:55.520 description on IP address from the into it so what we are going to do is copy the 98 00:03:55.520 --> 00:03:59.239 comment on line 4 here and paste it description on IP address from the 99 00:03:59.239 --> 00:04:02.060 into the input prompt on line 28 comment on line 4 here and paste it 100 00:04:02.060 --> 00:04:07.110 going to copy the entire line into the input prompt on line 28 101 00:04:07.110 --> 00:04:09.150 copy and I'm gonna replace it here going to copy the entire line 102 00:04:09.150 --> 00:04:15.540 on line 28 I just removed the word but copy and I'm gonna replace it here 103 00:04:15.540 --> 00:04:17.730 for simplicity so i'll end up with a on line 28 I just removed the word but 104 00:04:17.730 --> 00:04:20.220 full stop like you can see that so what for simplicity so i'll end up with a 105 00:04:20.220 --> 00:04:21.690 we've done is we've made the message a full stop like you can see that so what 106 00:04:21.690 --> 00:04:23.670 little bit more informative so that we we've done is we've made the message a 107 00:04:23.670 --> 00:04:25.170 can have a look at why we don't get a little bit more informative so that we 108 00:04:25.170 --> 00:04:26.880 green tick at the top-right of our code can have a look at why we don't get a 109 00:04:26.880 --> 00:04:29.340 window anymore and also take the green tick at the top-right of our code 110 00:04:29.340 --> 00:04:30.510 opportunity to clear up some of these window anymore and also take the 111 00:04:30.510 --> 00:04:33.960 lines down the end just leave the one opportunity to clear up some of these 112 00:04:33.960 --> 00:04:36.150 line down the bottom and we got our lines down the end just leave the one 113 00:04:36.150 --> 00:04:38.850 green tick now intelliJ tries to make line down the bottom and we got our 114 00:04:38.850 --> 00:04:40.980 life easy by highlighting all green tick now intelliJ tries to make 115 00:04:40.980 --> 00:04:43.620 occurrences of variables etc so you may life easy by highlighting all 116 00:04:43.620 --> 00:04:45.330 find that there are a lot of markers on occurrences of variables etc so you may 117 00:04:45.330 --> 00:04:46.740 the right-hand side of the code window find that there are a lot of markers on 118 00:04:46.740 --> 00:04:48.600 for example if you click on the word the right-hand side of the code window 119 00:04:48.600 --> 00:04:50.730 segment on line 32 i'll do that now for example if you click on the word 120 00:04:50.730 --> 00:04:54.030 notice how we now got segment segment on line 32 i'll do that now 121 00:04:54.030 --> 00:04:55.830 showing in a number we got the notice how we now got segment 122 00:04:55.830 --> 00:04:57.180 markers on the right-hand side now showing in a number we got the 123 00:04:57.180 --> 00:04:59.700 that's because intelliJ will highlight markers on the right-hand side now 124 00:04:59.700 --> 00:05:02.310 all instances of segments in the code that's because intelliJ will highlight 125 00:05:02.310 --> 00:05:04.110 and place a marker in the right margin all instances of segments in the code 126 00:05:04.110 --> 00:05:06.000 and the reason for that is that it and place a marker in the right margin 127 00:05:06.000 --> 00:05:07.620 allows you to quickly see the code for and the reason for that is that it 128 00:05:07.620 --> 00:05:09.510 each instance by hovering over the allows you to quickly see the code for 129 00:05:09.510 --> 00:05:11.610 marker or to jump to any occurence by each instance by hovering over the 130 00:05:11.610 --> 00:05:14.190 clicking on the marker now click into a marker or to jump to any occurence by 131 00:05:14.190 --> 00:05:15.750 blank line to clear the marker so I'll do clicking on the marker now click into a 132 00:05:15.750 --> 00:05:19.050 that now and what I need to do for this blank line to clear the marker so I'll do 133 00:05:19.050 --> 00:05:20.400 error to come up because I copy and that now and what I need to do for this 134 00:05:20.400 --> 00:05:23.160 pasted but what I didn't do was add another error to come up because I copy and 135 00:05:23.160 --> 00:05:25.110 or leave the original message their pasted but what I didn't do was add another 136 00:05:25.110 --> 00:05:28.440 so going to type that again so you or leave the original message their 137 00:05:28.440 --> 00:05:30.090 can see this problem so going to type that again so you 138 00:05:30.090 --> 00:05:33.960 alright so you can see what's happened can see this problem 139 00:05:33.960 --> 00:05:36.479 now that I've made it extra long this is alright so you can see what's happened 140 00:05:36.479 --> 00:05:37.860 was the original error that i wanted to now that I've made it extra long this is 141 00:05:37.860 --> 00:05:40.530 show you note that we no longer got was the original error that i wanted to 142 00:05:40.530 --> 00:05:41.970 a green tick in the box in the top show you note that we no longer got 143 00:05:41.970 --> 00:05:44.040 right-hand corner and just to confirm a green tick in the box in the top 144 00:05:44.040 --> 00:05:46.229 if i come over and select segment right-hand corner and just to confirm 145 00:05:46.229 --> 00:05:48.510 again you can see there's other errors if i come over and select segment 146 00:05:48.510 --> 00:05:50.340 again and if I just click back again you can see there's other errors 147 00:05:50.340 --> 00:05:51.660 we still got an error showing over there again and if I just click back 148 00:05:51.660 --> 00:05:54.330 and I can hover over that line too long we still got an error showing over there 149 00:05:54.330 --> 00:05:56.430 and 130 is greater than a 120 and I can hover over that line too long 150 00:05:56.430 --> 00:05:59.220 characters and I clicked on the warning and 130 is greater than a 120 151 00:05:59.220 --> 00:06:01.979 that you take me automatically to characters and I clicked on the warning 152 00:06:01.979 --> 00:06:03.120 line to show where the problem is that you take me automatically to 153 00:06:03.120 --> 00:06:05.520 you can see it's got to line 28 and line to show where the problem is 154 00:06:05.520 --> 00:06:07.200 obviously it's pretty clear on the fact you can see it's got to line 28 and 155 00:06:07.200 --> 00:06:08.460 that that's underlined that that's where obviously it's pretty clear on the fact 156 00:06:08.460 --> 00:06:09.270 the problem is that that's underlined that that's where 157 00:06:09.270 --> 00:06:11.250 so the problem here is that the Python the problem is 158 00:06:11.250 --> 00:06:13.440 parser doesn't have a 120 so the problem here is that the Python 159 00:06:13.440 --> 00:06:15.599 character restriction because if it did parser doesn't have a 120 160 00:06:15.599 --> 00:06:17.550 work our code will execute and we can run character restriction because if it did 161 00:06:17.550 --> 00:06:20.700 this its still going to actually work work our code will execute and we can run 162 00:06:20.700 --> 00:06:26.460 the code obviously still work so the this its still going to actually work 163 00:06:26.460 --> 00:06:28.110 problem is that isn't that the pyhon the code obviously still work so the 164 00:06:28.110 --> 00:06:29.880 parcer can't handle something greater problem is that isn't that the pyhon 165 00:06:29.880 --> 00:06:32.880 than 120 characters it's just that the parcer can't handle something greater 166 00:06:32.880 --> 00:06:35.010 python standards do recommend a maximum than 120 characters it's just that the 167 00:06:35.010 --> 00:06:37.410 length which used to be 79 characters python standards do recommend a maximum 168 00:06:37.410 --> 00:06:39.600 now the reason is largely down to length which used to be 79 characters 169 00:06:39.600 --> 00:06:41.640 readability especially when coding in now the reason is largely down to 170 00:06:41.640 --> 00:06:42.720 a terminal window readability especially when coding in 171 00:06:42.720 --> 00:06:44.940 now google actually specify a maximum a terminal window 172 00:06:44.940 --> 00:06:47.070 length of 80 characters with a few now google actually specify a maximum 173 00:06:47.070 --> 00:06:49.800 exceptions and let me bring the link up length of 80 characters with a few 174 00:06:49.800 --> 00:06:53.610 on the screen quickly so you can read exceptions and let me bring the link up 175 00:06:53.610 --> 00:06:55.050 more about that on that link that I just pasted on the screen quickly so you can read 176 00:06:55.050 --> 00:06:57.390 in but to also if you want more about that on that link that I just pasted 177 00:06:57.390 --> 00:06:59.730 to have a full half argument google in but to also if you want 178 00:06:59.730 --> 00:07:01.950 python line length and you can really to have a full half argument google 179 00:07:01.950 --> 00:07:04.620 become embroiled in much utility the python line length and you can really 180 00:07:04.620 --> 00:07:06.300 time is much better spent coding than become embroiled in much utility the 181 00:07:06.300 --> 00:07:08.850 worrying about such details the bottom time is much better spent coding than 182 00:07:08.850 --> 00:07:10.200 line here is not to be too concerned worrying about such details the bottom 183 00:07:10.200 --> 00:07:12.540 about whether it's 79 characters or its line here is not to be too concerned 184 00:07:12.540 --> 00:07:14.490 a 120 whether it's 80 but about whether it's 79 characters or its 185 00:07:14.490 --> 00:07:15.900 let's actually go back and appease a 120 whether it's 80 but 186 00:07:15.900 --> 00:07:17.970 IntelliJ so that we're not distracted by let's actually go back and appease 187 00:07:17.970 --> 00:07:20.430 warnings in that right margin i'm just IntelliJ so that we're not distracted by 188 00:07:20.430 --> 00:07:21.660 going to go back to intellij again warnings in that right margin i'm just 189 00:07:21.660 --> 00:07:25.500 we can actually fix it pretty easily we going to go back to intellij again 190 00:07:25.500 --> 00:07:27.390 can place the cursor before the words we can actually fix it pretty easily we 191 00:07:27.390 --> 00:07:31.770 separated here and press enter and you can place the cursor before the words 192 00:07:31.770 --> 00:07:32.550 can see that separated here and press enter and you 193 00:07:32.550 --> 00:07:34.530 intellij correctly fixes the problem for can see that 194 00:07:34.530 --> 00:07:37.320 us because it's split the line and sort intellij correctly fixes the problem for 195 00:07:37.320 --> 00:07:39.240 out the quotes for us automatically so us because it's split the line and sort 196 00:07:39.240 --> 00:07:41.970 that still valid Python syntax so you'll out the quotes for us automatically so 197 00:07:41.970 --> 00:07:44.070 often see long lines especially text that still valid Python syntax so you'll 198 00:07:44.070 --> 00:07:46.050 strings like this one spilled out of two often see long lines especially text 199 00:07:46.050 --> 00:07:48.690 or more lines in the code now keep in strings like this one spilled out of two 200 00:07:48.690 --> 00:07:50.160 mind that python also has a line or more lines in the code now keep in 201 00:07:50.160 --> 00:07:52.140 continuation character which is a mind that python also has a line 202 00:07:52.140 --> 00:07:54.300 backslash let's have a look at how that continuation character which is a 203 00:07:54.300 --> 00:07:54.990 works backslash let's have a look at how that 204 00:07:54.990 --> 00:07:57.900 we're going to actually cut that works 205 00:07:57.900 --> 00:07:59.640 text I'm just going to undo that change we're going to actually cut that 206 00:07:59.640 --> 00:08:03.510 but and undo which was a command z text I'm just going to undo that change 207 00:08:03.510 --> 00:08:05.850 on a Mac and control z on a pc or but and undo which was a command z 208 00:08:05.850 --> 00:08:09.030 linux machine i'm going to copy that on a Mac and control z on a pc or 209 00:08:09.030 --> 00:08:13.350 entire input i'm going to actually put linux machine i'm going to copy that 210 00:08:13.350 --> 00:08:15.060 it into a variable so I'm going to just entire input i'm going to actually put 211 00:08:15.060 --> 00:08:16.440 type... it into a variable so I'm going to just 212 00:08:16.440 --> 00:08:19.440 .... type... 213 00:08:19.440 --> 00:08:21.660 ... .... 214 00:08:21.660 --> 00:08:24.540 and unsurprisingly we're getting an ... 215 00:08:24.540 --> 00:08:27.030 error on that line as well indicating and unsurprisingly we're getting an 216 00:08:27.030 --> 00:08:29.220 that the lines too long so we can error on that line as well indicating 217 00:08:29.220 --> 00:08:31.440 split in the same way i can position the that the lines too long so we can 218 00:08:31.440 --> 00:08:34.329 cursor just before separated and press split in the same way i can position the 219 00:08:34.329 --> 00:08:36.939 enter that fixes the problem at least cursor just before separated and press 220 00:08:36.939 --> 00:08:39.669 for the input prompt variable but note enter that fixes the problem at least 221 00:08:39.669 --> 00:08:41.139 that this time because we've had in a for the input prompt variable but note 222 00:08:41.139 --> 00:08:43.179 string that fixed it by adding this that this time because we've had in a 223 00:08:43.179 --> 00:08:45.579 backslash at the end of the first line string that fixed it by adding this 224 00:08:45.579 --> 00:08:47.379 so if you want to split a line you can backslash at the end of the first line 225 00:08:47.379 --> 00:08:49.660 use the you can use a backslash so if you want to split a line you can 226 00:08:49.660 --> 00:08:51.730 character just like intelliJ has done use the you can use a backslash 227 00:08:51.730 --> 00:08:54.549 here and I can fix the next line character just like intelliJ has done 228 00:08:54.549 --> 00:08:59.199 now by changing that to input.... here and I can fix the next line 229 00:08:59.199 --> 00:09:01.569 just confirming that program now by changing that to input.... 230 00:09:01.569 --> 00:09:07.329 still runs and still getting the outputs just confirming that program 231 00:09:07.329 --> 00:09:08.319 so still working still runs and still getting the outputs 232 00:09:08.319 --> 00:09:10.720 so again if you want to split a line you so still working 233 00:09:10.720 --> 00:09:12.369 can use that backslash character to do so again if you want to split a line you 234 00:09:12.369 --> 00:09:14.079 that just like intellij done here can use that backslash character to do 235 00:09:14.079 --> 00:09:17.410 on line 28 unfortunately many style that just like intellij done here 236 00:09:17.410 --> 00:09:20.439 guides including Google's specify that on line 28 unfortunately many style 237 00:09:20.439 --> 00:09:22.299 you shouldn't use the line continuation guides including Google's specify that 238 00:09:22.299 --> 00:09:24.939 character unless theirs no alternative you shouldn't use the line continuation 239 00:09:24.939 --> 00:09:26.379 so you may actually find strings like character unless theirs no alternative 240 00:09:26.379 --> 00:09:29.170 ours enclosed in parentheses instead to so you may actually find strings like 241 00:09:29.170 --> 00:09:30.279 show you how that works i'm going to ours enclosed in parentheses instead to 242 00:09:30.279 --> 00:09:34.329 delete the parentheses like so we go show you how that works i'm going to 243 00:09:34.329 --> 00:09:36.100 back to the start of the line and add our delete the parentheses like so we go 244 00:09:36.100 --> 00:09:39.100 left parentheses then go to the back to the start of the line and add our 245 00:09:39.100 --> 00:09:41.679 right of the line second line left parentheses then go to the 246 00:09:41.679 --> 00:09:44.079 right parenthesis the other thing you right of the line second line 247 00:09:44.079 --> 00:09:45.759 need to do is make sure that these are right parenthesis the other thing you 248 00:09:45.759 --> 00:09:48.369 lined up correctly and once I've line them up need to do is make sure that these are 249 00:09:48.369 --> 00:09:49.660 correctly you can see that warning lined up correctly and once I've line them up 250 00:09:49.660 --> 00:09:52.059 actually disappears but without doing correctly you can see that warning 251 00:09:52.059 --> 00:09:54.429 that you'll get a weird error here about actually disappears but without doing 252 00:09:54.429 --> 00:09:56.110 continuation line under indented that you'll get a weird error here about 253 00:09:56.110 --> 00:09:58.299 for vision indent so just make sure continuation line under indented 254 00:09:58.299 --> 00:10:00.429 thats the double quotes are for vision indent so just make sure 255 00:10:00.429 --> 00:10:02.739 basically in line so I've mentioned this thats the double quotes are 256 00:10:02.739 --> 00:10:04.299 so that you can make sense of code basically in line so I've mentioned this 257 00:10:04.299 --> 00:10:07.059 written by other programmers a line can so that you can make sense of code 258 00:10:07.059 --> 00:10:08.529 be broken using that backslash written by other programmers a line can 259 00:10:08.529 --> 00:10:10.569 continuation character but most be broken using that backslash 260 00:10:10.569 --> 00:10:12.730 expressions can also be split without continuation character but most 261 00:10:12.730 --> 00:10:15.009 a line continuation character if the expressions can also be split without 262 00:10:15.009 --> 00:10:17.709 expression is enclosed in parentheses as a line continuation character if the 263 00:10:17.709 --> 00:10:19.689 it is in the example now for the input expression is enclosed in parentheses as 264 00:10:19.689 --> 00:10:21.279 _prompt variable on-screen it is in the example now for the input 265 00:10:21.279 --> 00:10:24.249 some style guides such as Google suggest _prompt variable on-screen 266 00:10:24.249 --> 00:10:26.110 you use parentheses instead of the some style guides such as Google suggest 267 00:10:26.110 --> 00:10:28.389 backslash whenever possible and that's you use parentheses instead of the 268 00:10:28.389 --> 00:10:30.339 why IntelliJ didn't insert the backslash backslash whenever possible and that's 269 00:10:30.339 --> 00:10:32.230 when the string was included as an why IntelliJ didn't insert the backslash 270 00:10:32.230 --> 00:10:34.629 argument to the input function earlier when the string was included as an 271 00:10:34.629 --> 00:10:36.759 on line 30 because it was enclosed in argument to the input function earlier 272 00:10:36.759 --> 00:10:38.739 parentheses the backslash actually on line 30 because it was enclosed in 273 00:10:38.739 --> 00:10:39.970 wasn't necessary parentheses the backslash actually 274 00:10:39.970 --> 00:10:42.069 alright so that's it that's the end of wasn't necessary 275 00:10:42.069 --> 00:10:43.240 our challenge and I hope you've got a alright so that's it that's the end of 276 00:10:43.240 --> 00:10:44.709 lot out of it and let's move on to the our challenge and I hope you've got a 277 00:10:44.709 --> 00:10:50.189 next video lot out of it and let's move on to the