WEBVTT 00:00.810 --> 00:05.390 Not condemning for previous lectures we need to talk about community minus operate. 00:05.580 --> 00:13.500 So they usually my Misaki does the binary symbol minus Lindis operator is used before the variable x 00:13.500 --> 00:15.260 value is negated. 00:15.390 --> 00:21.610 That means if the variable value is positive it will be converted into negative and vice versa. 00:21.810 --> 00:23.190 So let's take an example. 00:23.190 --> 00:27.920 Let me take a variable as in and give it a value often. 00:28.080 --> 00:35.490 And if I try to use this unity minus operator that means I would use a minus operator that is a minus 00:35.490 --> 00:37.920 symbol with the end. 00:38.070 --> 00:41.180 And if open that you can see I got a minus 10. 00:41.220 --> 00:42.830 So that was something basic. 00:42.990 --> 00:50.050 And if I need to performs why it's worse if I how am I and the value is minus 20. 00:50.190 --> 00:56.760 And if I try to print my words and that is the negative of him I will get 20. 00:56.760 --> 00:57.640 That is. 00:57.720 --> 01:01.900 That means the negative negative becomes a positive and B or 20. 01:02.010 --> 01:06.590 So this was something basic and you can utilize that in some programs. 01:06.600 --> 01:08.920 Next thing I need to talk about is three dimensional. 01:08.920 --> 01:09.700 Operator. 01:09.840 --> 01:16.260 So in the relational we can assume that it is used to compare two quantities are being of some relation 01:16.260 --> 01:22.870 between two quantities or two variables we can understand whether two values are same. 01:22.920 --> 01:29.490 One can be a bigger well-you one can be some smaller value we can compare them or we can use them conditioned 01:29.490 --> 01:33.870 to understand that particular condition is true or false. 01:33.870 --> 01:39.130 So to use can be compared with the help of relational operators. 01:39.180 --> 01:40.410 So let us do that. 01:40.410 --> 01:49.440 So for example if I take it as an let the state be as fully formed by and ever need to perform some 01:49.440 --> 01:54.170 relational operators the first one I want to go home is even greater than me. 01:54.240 --> 02:01.830 So they are very able to see if they perform relational operator like it is Creedon then B. 02:01.860 --> 02:07.100 Now if de-commissioned is right that means you are going to get a clue as a result. 02:07.110 --> 02:10.570 If the condition is strong we are going to get a false. 02:10.620 --> 02:12.630 Let me bring my baby. 02:12.740 --> 02:13.730 See. 02:13.740 --> 02:17.890 You can see we got a result of course that means is not greater than B. 02:18.060 --> 02:22.230 And ever try to perform is greater than equal to B. 02:22.350 --> 02:29.280 And if I try to print the reserves you can say again Smith and that means is neither greater or equal 02:29.280 --> 02:30.040 to B. 02:30.060 --> 02:38.520 But what if if I tried to oppose it if I check if it is listin me here and print the lizard along with 02:38.520 --> 02:40.400 C you can see that is true. 02:40.410 --> 02:43.290 That means then is less than 15. 02:43.290 --> 02:44.120 That is obvious. 02:44.130 --> 02:45.880 And we got the result that's true. 02:46.020 --> 02:51.700 And if I try to do is less than equal to me we'll be getting to excel. 02:51.780 --> 02:55.570 So let me do that and print out the value of c.. 02:55.620 --> 03:00.160 You can see I want to know if you need to compare the value of two. 03:00.180 --> 03:01.710 We cannot use a single equal. 03:01.710 --> 03:08.430 So that means if I need to check if it is equal to B I cannot do that with the help of single equals 03:08.430 --> 03:08.700 2. 03:08.700 --> 03:11.230 It means it will assign the value of. 03:11.310 --> 03:15.560 What I need to do is I need to use two equals two and then compare. 03:15.810 --> 03:20.450 So if I take the value and do see and try to print obduracy. 03:21.290 --> 03:23.240 So this will give me a result of false. 03:23.250 --> 03:28.610 That means it is not equal to me for now to know the value and then check that again. 03:28.770 --> 03:33.520 So if I do a calls to 10 and B was true then what I. 03:33.760 --> 03:38.570 And if I try to perform the same thing that is the equal sequence would be. 03:38.580 --> 03:42.300 That means we are comparing if is equal to B. 03:42.690 --> 03:48.780 And if I bring out this particular value that I see you can see if that's true that means the value 03:48.780 --> 03:57.900 of is equal to the value of b and the laceration operator is not equal to it and b are equal. 03:57.900 --> 04:01.130 What if I try to compare them if they are not equal. 04:01.140 --> 04:07.560 So if I tried to compare them the north symbol that is exclamation mark and then print out the value 04:07.560 --> 04:11.720 of c you can see we are getting lost here. 04:11.790 --> 04:14.850 I will say that it is not equal to be. 04:14.850 --> 04:18.410 But in real life is equal to be because Vortigern. 04:18.570 --> 04:22.170 But what I was stating that it is not equal to be. 04:22.200 --> 04:23.350 So that is strong. 04:23.380 --> 04:27.260 It is because we now understand relational does. 04:27.450 --> 04:30.430 Next we need to talk about logical operators. 04:30.440 --> 04:35.180 So the logical we can assume we need to perform some logical function. 04:35.310 --> 04:36.960 So they are all three died. 04:37.050 --> 04:39.900 One is and then are the not. 04:40.170 --> 04:43.290 In simple words I used to compare the condition. 04:43.520 --> 04:50.520 So and means if all the conditions are successful then we are going to get through all means any one 04:50.520 --> 04:52.100 condition should be fulfilled. 04:52.290 --> 05:00.920 And we'll get that through not as used when we want to convert from two wars and farcical example and 05:00.940 --> 05:07.780 Midlake X as hundred y as 1 and 0 as 300. 05:07.960 --> 05:16.180 Now if at any point of time I want to use relation between them and applied to relation at a time and 05:16.180 --> 05:18.450 then compare them at that point of time. 05:18.460 --> 05:22.020 I need to use logical operation to support I need home. 05:22.050 --> 05:28.730 That said is greater than x and I also need to perform Zen is greater than Y. 05:28.900 --> 05:35.890 So if this case is true then I can do some something else but how I am going to build these two separate 05:36.080 --> 05:39.660 tasks at this point of time we need to take both cases. 05:39.880 --> 05:43.110 And if any of them is wrong we cannot proceed. 05:43.240 --> 05:44.150 So then we use. 05:44.200 --> 05:51.490 And that means these both cases should be true and then we can proceed if I do that it is true. 05:51.750 --> 05:58.740 So if I perform them individually That means if I go and that is greater than x it is true if I try 05:58.750 --> 06:05.160 to lose that is greater than why it is true that means these both cases were true then we can get this 06:05.170 --> 06:10.160 through auction if any one of them was wrong you will get up for us. 06:10.200 --> 06:11.320 Let me do that. 06:12.880 --> 06:13.870 And if I use. 06:13.870 --> 06:19.820 So why is Creedon said Mitch is wrong because 200 is less than three in there. 06:20.050 --> 06:23.440 And if I see it this was because this condition is wrong. 06:23.620 --> 06:27.870 Now let us talk about or so or means from these two cases. 06:27.910 --> 06:29.060 One should be true. 06:29.110 --> 06:37.030 That means if one is true one is false it is ok I will be on the same line with or why I need to use 06:37.090 --> 06:37.760 or. 06:37.760 --> 06:45.070 And then why is greater than the you can see are the result of true because from these two cases at 06:45.070 --> 06:46.880 least one should be correct. 06:47.320 --> 06:52.190 There is good and then X is correct whereas Y is greater than that is false. 06:52.330 --> 06:59.680 So when we did or it means this one case should be correct and 4 and all the cases should be correct. 06:59.950 --> 07:02.110 Now we need to talk about NOT operator. 07:02.200 --> 07:04.490 So just give are the most recent. 07:04.630 --> 07:07.770 So if we have something that's true it will give us pause. 07:07.900 --> 07:11.030 So let me try out if Zune is greater than x. 07:11.170 --> 07:15.290 So I go and that is greater than x and y are the true. 07:15.310 --> 07:16.800 And if I try or not. 07:17.020 --> 07:19.690 And then Zed is greater than X.. 07:19.930 --> 07:27.010 I don't know for us because it just was the wizard check we said is greater than x which is true and 07:27.010 --> 07:29.420 not of true is false. 07:29.440 --> 07:34.440 So just reverse outers or the last Lastrapes we need to talk about this boolean. 07:34.450 --> 07:37.620 So as you know bhool is true and false. 07:37.660 --> 07:43.040 So this basically is a combination of logical operator and assignment operator. 07:43.070 --> 07:49.290 So the value of it as true and B as follows. 07:49.660 --> 07:57.080 If I tried to perform the same logical operators that is and or not you can try and play with die. 07:57.280 --> 08:04.810 And if I do it and it that means true and true I will get a true because that is true and is true. 08:05.110 --> 08:13.010 And if I try to do a and b that means is true B is false when we use and what should be true. 08:13.070 --> 08:15.010 That of course because both are not true. 08:15.130 --> 08:20.150 If I do a or b that means at least one should be true here is true. 08:20.260 --> 08:22.070 And if it will not be true. 08:22.300 --> 08:26.450 And if I want to do that with not so I know is true. 08:26.530 --> 08:29.060 If I do not I got a false. 08:29.080 --> 08:30.710 So that was boolean operators. 08:30.750 --> 08:32.220 I hope you understand that. 08:32.440 --> 08:37.790 So that's all for credos it was Lindi but it was really informative. 08:37.840 --> 08:41.130 And the next lectures will be talking about input output. 08:41.170 --> 08:45.120 And when we start working with ID that is our action. 08:45.280 --> 08:46.830 So see you in the next decade.