WEBVTT

00:00.390 --> 00:05.610
Write in Python you're quite used to the comparison operators that we generally do.

00:05.610 --> 00:09.790
So here we have a few comparison operators which can be used to winnow pi.

00:09.870 --> 00:17.970
So I'll just put them in markdown and tear and let's say competitors and operators so that's what you're

00:17.970 --> 00:19.020
going to deal with.

00:19.440 --> 00:19.740
Right.

00:19.740 --> 00:26.140
So in comparison operators we can say we're used to you know we can apply them to whatever types.

00:26.340 --> 00:31.420
Again first of all remember in part empires end.

00:31.920 --> 00:32.930
And then let's start.

00:33.000 --> 00:40.720
Let's say will to end the dot Attie and create of course some kind of NRD.

00:40.760 --> 00:41.520
Right.

00:41.520 --> 00:45.990
So this is going to be one this is going to be second.

00:46.350 --> 00:47.520
It's going to be third.

00:47.810 --> 00:49.690
So.

00:50.610 --> 00:58.490
So just over here I'm going to put some ralliers let's say on come on to come on three or four come

00:58.500 --> 01:00.520
a 5 km or six and let me see.

01:00.530 --> 01:03.830
But here are seven come a comma nine.

01:03.960 --> 01:09.640
Now let's say I define another party the is equal to that.

01:10.170 --> 01:11.290
And there's another IRA.

01:11.310 --> 01:18.630
But this time this particular rally is consisting of different kinds of values.

01:18.720 --> 01:19.220
Right.

01:19.440 --> 01:21.210
So let me just put it up here.

01:21.210 --> 01:21.840
Let's say

01:25.910 --> 01:32.790
so so let me say I put values like on come a five column or three.

01:32.890 --> 01:46.980
You know five comma five comma two and there's going to be four comma nine comma nine.

01:47.390 --> 01:48.130
Right.

01:48.270 --> 01:53.490
And I want to compare these two address the elements in these two Audi's I want to compare them.

01:53.520 --> 01:59.400
So are they equal or not equal so if I use the comparison Alfredo let's say the equal to equal to operator.

01:59.400 --> 02:03.090
If I print this what will it give me.

02:03.510 --> 02:05.510
So this I can use it many times.

02:05.520 --> 02:08.930
So it says OK the first two elements are same so it's true.

02:08.940 --> 02:12.210
So it turns to you a true false true false kind of thing.

02:12.210 --> 02:13.920
These two elements are not same.

02:13.920 --> 02:15.490
So it's always false.

02:15.720 --> 02:22.730
So you can have some comparison being done in this particular man and the type of this particular they

02:22.740 --> 02:24.640
will be bullier boolean.

02:25.080 --> 02:25.760
Right.

02:26.190 --> 02:30.200
So that's really the type which you can also say.

02:30.600 --> 02:34.830
Also if you want you can if you want to check if they are equal so because if you want to see sometimes

02:34.860 --> 02:36.840
if you know you want to use something like that.

02:37.080 --> 02:45.780
So you can also use a methodical as anti-dote at a at a underscore equal rate.

02:45.960 --> 02:49.250
And if I say a comma B.

02:49.490 --> 02:51.830
Right and if I say enter it says false no.

02:51.830 --> 02:53.120
They both are not equal.

02:53.190 --> 02:53.650
OK.

02:53.730 --> 03:01.530
I want to check if you know if there is actually a real case with sequels so equal let's say a.m.-I

03:01.650 --> 03:04.180
of course tables are equal but that's right.

03:04.200 --> 03:04.550
Yeah.

03:04.560 --> 03:05.940
So it returns true.

03:05.940 --> 03:09.040
So I can use some conditions like that.

03:09.690 --> 03:11.030
And you know get things done.

03:11.030 --> 03:16.300
What were the what things were things with the comparison operators.

03:16.350 --> 03:16.960
OK.

03:17.340 --> 03:18.690
What about logical operators.

03:18.690 --> 03:21.220
We can just have a look at logical operators too.

03:21.720 --> 03:27.730
OK so we're here I can just put logical operators and the two down.

03:28.080 --> 03:36.490
So I'm going to say logical ops operators and that's going to be huge so I'll but two more hushes.

03:38.540 --> 03:38.920
Yeah.

03:39.090 --> 03:40.820
And oops.

03:40.860 --> 03:42.340
Where's it's gone.

03:42.580 --> 03:44.620
Oh yeah that was.

03:44.970 --> 03:52.530
So this is logical operators saying oh here we can have an is equal to any dot of course but this this

03:52.650 --> 03:55.890
logical operators can only work on Boolean that is a member.

03:56.140 --> 04:05.430
So you need to define boolean that is let's define injuries in such a way that you know let's put the

04:05.430 --> 04:09.230
case where 1 1 0 0 so that's basically true.

04:09.270 --> 04:12.960
True and False False correct.

04:12.960 --> 04:17.790
So let me find it 1 0 you and every to find another way.

04:17.820 --> 04:21.880
Ari which is 1 0 1 0 0 1 or something like that.

04:21.900 --> 04:22.220
Yeah.

04:22.290 --> 04:31.190
So let me say the dot dot at a and not an equal loss.

04:31.210 --> 04:31.920
OK.

04:32.290 --> 04:35.830
And let me say Come.

04:37.450 --> 04:37.920
Right.

04:37.930 --> 04:42.360
So this is going to be true or false.

04:42.970 --> 04:44.270
True false.

04:45.670 --> 04:46.460
Come on.

04:46.780 --> 04:51.060
And this is going to be again True False.

04:52.000 --> 04:52.860
Right.

04:52.870 --> 05:05.830
And now if I say if I print if I print b and b dot logical I need to say like this logical and logical

05:06.190 --> 05:13.040
logical or logical X or we'll try all of them right logical and a come or be right.

05:13.090 --> 05:15.060
If I print that see.

05:15.130 --> 05:22.590
True true is true true false false false false is false true is false false also true or false.

05:22.630 --> 05:33.210
That's the case I can't print and VIDOT logical logical not and I can just parse just one of them so

05:33.210 --> 05:36.180
it will return to me completely.

05:36.390 --> 05:49.240
You know by complimenting each of the values out there and I can also have an odd logical logical OR.

05:50.030 --> 05:52.030
And I pass a comma B.

05:52.470 --> 05:53.330
It's going to be true true.

05:53.340 --> 05:58.570
It's going to be false in only one case when both is false or it is false and both are false.

05:58.600 --> 06:02.880
You remember and be taught logic.

06:03.500 --> 06:08.970
Oh my logical S.R. and I say are a comma B.

06:09.140 --> 06:13.190
This is going to be OK so X or is true and any one of them is true.

06:13.200 --> 06:15.130
That's it not.

06:15.150 --> 06:17.310
And both are true and both are false.

06:17.310 --> 06:18.130
If you remember.

06:18.300 --> 06:20.940
So that's that's about Izhar.

06:21.030 --> 06:27.540
So I hope you understood about the logical operators that can be there so you can also apply operators

06:27.650 --> 06:32.460
of four areas of different shapes which we will we will cover.

06:32.460 --> 06:32.870
Right.

06:32.870 --> 06:40.420
So and then we go on to a few examples of how we can how we can do them all right.

06:40.520 --> 06:41.010
OK.

06:41.110 --> 06:49.590
So for now these are the operators that we can do and then we'll go on to another session for an umpire.
