Let's learn condition in Python.
Python supports the usual logical condition from mathematics.
Okay.
Very easy.
For example, we have a which is equal to b.
So this is called equals or it shows equality.
And we have other one which is a not equal to b.
This is this means that it is.
This both is not equal.
So that is it.
And also we have less than a a less than b.
So is called a less than b.
And we have a greater than b okay.
And also we have a less than or equal to.
So less than or equal to b a less than or equal to b okay.
And also we have greater than or equal to a greater than or equal to b.
Now In a logical or in condition.
We have this option that we are going to be using them and it is very easy.
Don't be worried.
You're going to just learn it okay.
So let's go with an example.
A is equal to for example 12 b is equal to a number which is this one.
Now I am going to use an if condition.
If for example A is equal a is greater than B, then printed text like a is greater.
But if not, then print B is greater.
So how can we do that?
Let's use if this is how we write the if condition okay.
We use.
If A is greater than B then use colon.
Hit enter.
Be careful about this space.
It is called indentation in Python okay.
And this print a text here.
For example a is greater.
Okay.
A is greater.
Right now it is just the if condition right now if I execute this.
So you see that it is not greater than B, then it will not print anything at all.
So?
So we have to handle the other option which is else part.
Now let's use Python condition.
And you see we have nothing.
And let me use the else part.
Else is going to be here in else part.
I am going to print that B is greater.
Now I save this and hit enter.
You see B is greater.
What if I change the number to a number like this?
Now you see that a is greater before it was B is greater.
So it is how we can use conditions in Python okay.
It is one of the very simple example of a condition and if condition in Python.
So let's go and learn this with more details in the future.
So see you there.