Previously, we talked about the comparison operation. And if we want to check if two variables are equal, we would use triple equal signs. But the difference between using triple equal signs and double equal signs is that triple equal signs will check the type as well as the value of the two variables that you want to compare. But the double equal signs will only check the value regardless of the type. So for example, if I want now to compare w with z by using triple equal signs, if I save on run, I would get false despite w equals z, but the difference is that z is not of the same type as As w because z is a string is a string, and w is an integer. And this is the difference.
If you use triple equal signs, it will check the type as well as the value. But if you don't care about the type, if you just want to check the value, you would just use double equal signs. And now if I save and run, I would get through and as you can see, I get through because double equal signs doesn't care of the type of variable you are you are comparing, it just cares about the value itself. It doesn't care about the type of variable, but if you want to check the type as well, you should add triple equal signs. And of course, you can do the doesn't equal by using the exclamation. You just would replace the first equal sign with exclamation mark and if you want to To compare by using doesn't equal you, but you don't care about the type you just use doesn't equal with only a single equal mark.
So to recap, you only use the double equal signs when you want to compare the value itself and you don't care about the type of variables you are comparing. You would use triple equal signs when you want to compare the value as well as the tie