WEBVTT 00:00.420 --> 00:01.920 So let us take a new condition. 00:01.980 --> 00:07.650 I have four students and if someone picks it that means I have to send them to room number one. 00:07.680 --> 00:13.040 If someone picks B then I have to send them to room number two if someone select the students. 00:13.090 --> 00:20.160 Then I send them to number 3 and 4 do not send them to whole neighborhood so we can use is as safe as 00:20.160 --> 00:22.130 if it's condition not more bad. 00:22.290 --> 00:28.670 So what we have to do is take input from a user about the student name and if students need matches 00:28.680 --> 00:35.330 with all the false student available then we need to print a certain number as we need to say that invalid 00:35.340 --> 00:37.550 student name that is far from that. 00:37.740 --> 00:40.270 So all we have to start with is Stephen input. 00:40.300 --> 00:41.560 That is stupid. 00:41.760 --> 00:46.890 Now once you break the input you don't have to do anything since we need string as an input since we 00:46.890 --> 00:48.850 are playing with student name now. 00:49.050 --> 00:55.110 And now what I have to do is I need to check all the student name so as opposed to force to name a second 00:55.110 --> 01:00.950 one is Jonge organization and one is only so if it still is equal to. 01:01.140 --> 01:08.510 So we are checking that the student name that is stored in the is equal to Shubha then be approved inserting 01:08.650 --> 01:10.100 instruction. 01:10.140 --> 01:12.830 I know I need to check for Student Number 2. 01:13.030 --> 01:17.850 So what I can use is else that can only add one condition. 01:18.070 --> 01:24.020 I need to check more conditions so I can use as if that is any stoolie. 01:24.130 --> 01:31.260 That is my second condition and if the second condition is done then I need to send them to number two. 01:31.300 --> 01:37.690 Now I also need to check out the third condition so I need to go with s and add on the condition that 01:37.690 --> 01:38.300 is if 01:41.970 --> 01:46.590 an item for Commission which is ANY So all that is done. 01:46.600 --> 01:48.650 Mike Morten's there is something else. 01:48.660 --> 01:50.220 Maybe hardish. 01:50.370 --> 01:55.740 So what will I need to give a certain instruction to then so I can add is. 01:55.970 --> 01:57.730 And that is would be. 01:57.930 --> 01:59.350 So now I give you a brief. 01:59.350 --> 02:01.860 I'm going to check the student name. 02:01.890 --> 02:08.580 I'm proceeding with through minimal one and these alternation would get skipped and I would just print 02:08.580 --> 02:09.830 this one. 02:09.840 --> 02:13.750 If this condition is not true I am going to the second condition. 02:13.800 --> 02:20.720 Check this out and if this is true and want to bring a vote to number two if this is also not true and 02:20.730 --> 02:22.400 when the third condition. 02:22.530 --> 02:27.890 Check this out if this is true then I'm going to rule number 3 and this is also not true. 02:27.900 --> 02:31.410 I I'm doomed to default condition if this is also not true. 02:31.410 --> 02:36.360 I'm willing to do as so at any point of time as any condition is true. 02:36.360 --> 02:38.750 I'm going to skip the section. 02:38.820 --> 02:45.360 That means if any condition is true then I'm good to go and let us run this one. 02:45.380 --> 02:51.300 I need to give street name that as I give Sharon instructions that go see below one. 02:51.410 --> 02:54.850 Let me try this out and if I get score. 02:55.140 --> 02:56.510 Oh I got the error. 02:56.610 --> 03:00.940 If I try even if I gave when I wrote that. 03:01.220 --> 03:03.210 That means that any other condition is true. 03:03.240 --> 03:08.780 I'm good Pugel and I need to skip all the other conditions and all these conditions are not true. 03:08.810 --> 03:11.310 Then I were to go with this condition. 03:11.660 --> 03:12.750 I hope you understand. 03:12.800 --> 03:21.600 If nested IF is logical bar and also else if if that is a list and also remember that indentations are 03:21.650 --> 03:23.390 really important in Python. 03:23.440 --> 03:25.020 So you have to be careful. 03:25.220 --> 03:27.110 I hope you understand this lecture. 03:27.110 --> 03:28.340 Good to see we are growing. 03:28.340 --> 03:30.970 See you in the next lecture.