WEBVTT

00:00.450 --> 00:12.930
Equal greater or less than operators equal greater or less than operators why using state means we can

00:12.930 --> 00:16.150
use many different mathematical comparisons.

00:16.170 --> 00:23.400
For example we believe that greater than or equal less than less than or equal.

00:23.400 --> 00:31.290
These operations are very important to know them because you will use them a lot for all kinds of programming

00:31.320 --> 00:39.170
languages no while using real than or equal or less than or equal.

00:39.610 --> 00:51.090
Sure the equal sign comes after the greater than and less than signs such as a 15 greater than or equal

00:51.100 --> 00:51.830
five.

00:52.170 --> 00:56.340
Yes let's see how.

00:57.450 --> 01:06.650
So now open brackets and we will use greater or less than with if else statements for comparisons.

01:06.660 --> 01:12.410
For example I will create a variable Paul griller and I will assign it with 10.

01:12.450 --> 01:18.860
Next I will create a variable call list and I will assign it with 5.

01:19.410 --> 01:19.890
OK.

01:19.890 --> 01:23.390
Now let's compare these two variables.

01:23.850 --> 01:30.220
So type if greater is greater than list then the statement will be printed yes.

01:30.630 --> 01:32.600
Else call in print.

01:32.640 --> 01:37.260
No.

01:39.360 --> 01:42.490
After that save the file and try it on terminal

02:01.690 --> 02:04.330
cool as you can see here.

02:04.340 --> 02:12.350
Reeler variable which contains number 10 is greater than list variable which contains number 5.

02:12.780 --> 02:20.400
So if we change the operator to greater than or equal sign which mean if greater variable is greater

02:20.400 --> 02:26.390
than or equal to this variable then Prentis else print.

02:27.000 --> 02:29.740
Now try on terminal.

02:29.900 --> 02:31.290
It says yes.

02:31.360 --> 02:36.210
Now we want to try less than sign and see that until now also

02:44.600 --> 02:52.540
it says no because a greater variable is not listed than the last variable.

02:52.540 --> 03:00.600
If we try less than or equal sign will also no because the greater variable is now less than four equals

03:00.600 --> 03:06.720
to less variable.

03:06.730 --> 03:16.690
If we use the equal equal sign which means Grieger variable is equal to list variable print Yes else.

03:16.810 --> 03:17.140
Now

03:21.940 --> 03:27.140
as you can see here it prints known because the two variables are not equal.

03:27.600 --> 03:31.930
Anyways for now please do not regard the equal sign.

03:31.930 --> 03:35.910
This should be after the greter or less than signs.

03:35.920 --> 03:41.780
Not before because it will print error in the terminal if you do that right.

03:41.920 --> 03:42.850
Thank you so much.
