1
00:00:00,000 --> 00:00:04,000
So guys, we are going to continue the discussion with respect to our Python series and this video.

2
00:00:04,000 --> 00:00:07,000
We are going to deep dive into the operators.

3
00:00:07,000 --> 00:00:12,000
Uh, and we'll see that how with the help of Python we will be able to perform different different operations.

4
00:00:12,000 --> 00:00:14,000
Now here is the entire video outline.

5
00:00:14,000 --> 00:00:17,000
So first of all we will go ahead and see introduction to operators.

6
00:00:17,000 --> 00:00:23,000
Then we'll see multiple arithmetic operators like addition subtraction, multiple multiplication, division

7
00:00:23,000 --> 00:00:25,000
flow division modulus and exponential.

8
00:00:25,000 --> 00:00:31,000
Along with this we will see comparison operators like equal to not equal to, greater than, less than,

9
00:00:31,000 --> 00:00:35,000
uh greater than or, equal to, less than or equal to and will perform various operations.

10
00:00:35,000 --> 00:00:36,000
Along with.

11
00:00:36,000 --> 00:00:38,000
This will also be seeing logical operators like and or not.

12
00:00:38,000 --> 00:00:43,000
And then will will be like all these things will be shown along with the practical examples.

13
00:00:43,000 --> 00:00:43,000
Right.

14
00:00:43,000 --> 00:00:45,000
So let me just go ahead.

15
00:00:45,000 --> 00:00:49,000
First of all, if you don't know about operators, guys, any kind of math, arithmetic operation or

16
00:00:49,000 --> 00:00:53,000
logical operation can be probably performed with this kind of operators.

17
00:00:53,000 --> 00:00:53,000
Okay.

18
00:00:53,000 --> 00:01:00,000
And, uh, obviously when we write any Python code, we definitely require a lot of, uh, operations,

19
00:01:00,000 --> 00:01:02,000
uh, probably to develop our projects and.

20
00:01:02,000 --> 00:01:05,000
All right, so quickly, let me just go ahead and create my code cell.

21
00:01:05,000 --> 00:01:08,000
And here, uh, I will show you one shortcut.

22
00:01:08,000 --> 00:01:12,000
You just press escape and press A automatically.

23
00:01:12,000 --> 00:01:13,000
Cells will get appended.

24
00:01:13,000 --> 00:01:13,000
Right.

25
00:01:14,000 --> 00:01:18,000
So first of all, uh, we are going to go ahead with arithmetic operations.

26
00:01:18,000 --> 00:01:19,000
Right.

27
00:01:19,000 --> 00:01:24,000
And, uh, here with respect to the arithmetic operations, uh, let me just go ahead and create some

28
00:01:24,000 --> 00:01:26,000
variables like a is equal to ten.

29
00:01:26,000 --> 00:01:28,000
Uh, oops.

30
00:01:28,000 --> 00:01:32,000
So I will go ahead and write okay.

31
00:01:32,000 --> 00:01:33,000
This is getting added.

32
00:01:33,000 --> 00:01:34,000
We'll discuss about all these things.

33
00:01:34,000 --> 00:01:35,000
No worries.

34
00:01:35,000 --> 00:01:37,000
So a is equal to ten okay.

35
00:01:37,000 --> 00:01:45,000
And let's say I'm going to write B is equal to 15 if I want to perform any kind of operations over here.

36
00:01:45,000 --> 00:01:45,000
Right.

37
00:01:45,000 --> 00:01:48,000
Let's say I want to perform a basic arithmetic operation.

38
00:01:48,000 --> 00:01:49,000
I will go ahead and write.

39
00:01:49,000 --> 00:01:51,000
Result is equal to A plus B.

40
00:01:51,000 --> 00:01:54,000
So this is the addition operation that we specifically do.

41
00:01:54,000 --> 00:01:58,000
And here I can go ahead and print my result right a simple addition operation.

42
00:01:59,000 --> 00:02:01,000
So here my answer is 15 right.

43
00:02:01,000 --> 00:02:09,000
Similarly what I can actually do is that again so this will basically be my ad ad result.

44
00:02:10,000 --> 00:02:10,000
Okay.

45
00:02:10,000 --> 00:02:15,000
Similarly we can go ahead and create our subtraction result which will be nothing but a minus B.

46
00:02:16,000 --> 00:02:23,000
Then uh, along with this we can go ahead and do our multiplication result, right, which will be nothing

47
00:02:23,000 --> 00:02:24,000
but A multiplied by B.

48
00:02:25,000 --> 00:02:28,000
Uh, this is what we specifically get with respect to the multiplication operation.

49
00:02:29,000 --> 00:02:32,000
Uh, along with multiple operation, we also have a division operation.

50
00:02:32,000 --> 00:02:33,000
So let me just go ahead and write.

51
00:02:33,000 --> 00:02:38,000
My division underscore result is equal to a divided by B.

52
00:02:38,000 --> 00:02:38,000
Okay.

53
00:02:39,000 --> 00:02:42,000
Uh and then we will also be having flow division.

54
00:02:42,000 --> 00:02:45,000
We'll discuss what is the difference between flow division also.

55
00:02:45,000 --> 00:02:49,000
So here you can see flow underscore div underscore results okay.

56
00:02:49,000 --> 00:02:56,000
And here you can see I have to just use a double slash like it's not divided, it's double divided by

57
00:02:56,000 --> 00:02:56,000
B.

58
00:02:56,000 --> 00:02:56,000
Okay.

59
00:02:56,000 --> 00:02:58,000
So we'll discuss about this.

60
00:02:58,000 --> 00:03:00,000
Why exactly we use this flow division okay.

61
00:03:00,000 --> 00:03:04,000
So this is my, uh, addition operation.

62
00:03:04,000 --> 00:03:07,000
This is my subtraction operation.

63
00:03:07,000 --> 00:03:10,000
So subtraction

64
00:03:12,000 --> 00:03:13,000
operation.

65
00:03:13,000 --> 00:03:17,000
And the next one is my multiplication operation.

66
00:03:18,000 --> 00:03:21,000
And this is by division operation.

67
00:03:21,000 --> 00:03:23,000
And this is my flow division.

68
00:03:23,000 --> 00:03:25,000
We'll understand everything over here.

69
00:03:25,000 --> 00:03:25,000
Don't worry.

70
00:03:26,000 --> 00:03:26,000
Uh.

71
00:03:27,000 --> 00:03:28,000
Normal operation.

72
00:03:28,000 --> 00:03:29,000
I think you know it, right?

73
00:03:29,000 --> 00:03:30,000
It's basic maths.

74
00:03:30,000 --> 00:03:31,000
Then.

75
00:03:31,000 --> 00:03:34,000
Uh, you also have, which is called as modulus operation.

76
00:03:34,000 --> 00:03:41,000
Okay, so here I'm going to basically go ahead and write modulus underscore result is equal to a modulus

77
00:03:41,000 --> 00:03:41,000
b.

78
00:03:41,000 --> 00:03:43,000
So we'll discuss about this.

79
00:03:43,000 --> 00:03:45,000
So this is exactly my modulus results.

80
00:03:46,000 --> 00:03:51,000
Or here I can write a modulus operation okay.

81
00:03:51,000 --> 00:03:57,000
And then finally you'll also be able to see that I will also use an exponential operation.

82
00:03:57,000 --> 00:04:03,000
And here I can go ahead and write exponential underscore result which will be nothing but a to the power

83
00:04:03,000 --> 00:04:04,000
to the power.

84
00:04:04,000 --> 00:04:08,000
We basically say like we use this two star to the power of B.

85
00:04:08,000 --> 00:04:12,000
Okay, so this is basically my exponential operation.

86
00:04:12,000 --> 00:04:13,000
Okay.

87
00:04:14,000 --> 00:04:14,000
Perfect.

88
00:04:14,000 --> 00:04:16,000
Now let's go ahead and print this results.

89
00:04:16,000 --> 00:04:18,000
So here we have this.

90
00:04:18,000 --> 00:04:21,000
Then again I will go ahead and write print.

91
00:04:21,000 --> 00:04:24,000
Then again I will go ahead and write print.

92
00:04:24,000 --> 00:04:30,000
I'll copy this print multiple times because I need to display this results together okay.

93
00:04:30,000 --> 00:04:34,000
So now uh, let me just go ahead and write the subtract result.

94
00:04:35,000 --> 00:04:37,000
Uh, let me go ahead and oops.

95
00:04:37,000 --> 00:04:38,000
Just a second.

96
00:04:38,000 --> 00:04:39,000
Multiple results.

97
00:04:39,000 --> 00:04:41,000
So I will go ahead and paste it over here.

98
00:04:42,000 --> 00:04:44,000
And then we have our div result.

99
00:04:44,000 --> 00:04:45,000
We'll paste it over here.

100
00:04:45,000 --> 00:04:48,000
Then we have our modulus result.

101
00:04:48,000 --> 00:04:49,000
We'll paste it over here.

102
00:04:49,000 --> 00:04:51,000
Then we have our exponential results.

103
00:04:51,000 --> 00:04:53,000
We'll paste it over here okay.

104
00:04:54,000 --> 00:04:59,000
One flow division result is pending, so let me just go ahead and write it over here.

105
00:04:59,000 --> 00:05:01,000
Print and I'll paste it over here.

106
00:05:01,000 --> 00:05:03,000
So here you can see addition is 15.

107
00:05:03,000 --> 00:05:04,000
Subtraction is five.

108
00:05:04,000 --> 00:05:06,000
Multiplication is 50.

109
00:05:06,000 --> 00:05:08,000
Division is 2.0.

110
00:05:08,000 --> 00:05:10,000
And floor division result is nothing but two.

111
00:05:10,000 --> 00:05:11,000
Right.

112
00:05:11,000 --> 00:05:13,000
We will discuss about both of them by 2.0 and two.

113
00:05:13,000 --> 00:05:15,000
Then you have modulus operation.

114
00:05:15,000 --> 00:05:19,000
Modulus basically means that it will try to just give you the remainder right.

115
00:05:19,000 --> 00:05:24,000
So here you can see ten divided by five is uh like the remainder is zero.

116
00:05:24,000 --> 00:05:26,000
So that is the reason you will be able to see zero is over here.

117
00:05:26,000 --> 00:05:32,000
And when we do a to the power of B right, ten to the power of five, we are actually going to get this

118
00:05:32,000 --> 00:05:33,000
value right.

119
00:05:33,000 --> 00:05:33,000
Now.

120
00:05:33,000 --> 00:05:36,000
Let's discuss more about this two okay.

121
00:05:36,000 --> 00:05:37,000
This two operation.

122
00:05:37,000 --> 00:05:42,000
Let's say that I want to uh, divide a number like ten divided by five.

123
00:05:42,000 --> 00:05:49,000
So I will be able to get two If I go ahead and write, let's say I will go ahead and write 21 divided

124
00:05:49,000 --> 00:05:50,000
by five.

125
00:05:50,000 --> 00:05:51,000
And obviously you know the result.

126
00:05:51,000 --> 00:05:52,000
It is 4.2, right.

127
00:05:52,000 --> 00:05:57,000
But if I use floor division then what will happen is that I will get the answer as four.

128
00:05:57,000 --> 00:06:00,000
So whatever will be the floor value right.

129
00:06:00,000 --> 00:06:03,000
The lowest value, it will just remove the decimal and it will give you the output.

130
00:06:03,000 --> 00:06:04,000
Okay.

131
00:06:04,000 --> 00:06:06,000
So this is a basic example.

132
00:06:06,000 --> 00:06:08,000
Now you can perform various operations.

133
00:06:08,000 --> 00:06:11,000
Uh, and uh we will see I'll try to create a calculator for you.

134
00:06:11,000 --> 00:06:16,000
And over here only I will show you that particular project also right as we go ahead.

135
00:06:16,000 --> 00:06:17,000
Perfect.

136
00:06:17,000 --> 00:06:23,000
Uh, now uh, the next step we are going to probably discuss about is comparison operators.

137
00:06:23,000 --> 00:06:24,000
Okay.

138
00:06:24,000 --> 00:06:29,000
So let me just go ahead and write it down and basically write it down as comparison operators.

139
00:06:29,000 --> 00:06:34,000
So guys now let's go ahead and see some of the comparison operators.

140
00:06:34,000 --> 00:06:39,000
Uh, now first of all uh we will go ahead with double equal to okay.

141
00:06:39,000 --> 00:06:41,000
So we will be using double equal to.

142
00:06:41,000 --> 00:06:47,000
Now let's say that uh, I will go ahead and create a result or let me just go ahead and define a variable

143
00:06:47,000 --> 00:06:49,000
called as a is equal to ten okay.

144
00:06:49,000 --> 00:06:51,000
And b is equal to ten.

145
00:06:52,000 --> 00:06:55,000
Now if I want to probably compare this operators right.

146
00:06:55,000 --> 00:07:00,000
What I can actually do I can go ahead and write my result and let me just go ahead and simply use a

147
00:07:00,000 --> 00:07:01,000
tuple.

148
00:07:01,000 --> 00:07:06,000
I will talk about this brackets and just let me write it like a double equal to B.

149
00:07:07,000 --> 00:07:11,000
Or if I don't even want to write like this, just go ahead and write a double equal to B, right?

150
00:07:11,000 --> 00:07:14,000
If I execute it, I will be able to get true over here.

151
00:07:14,000 --> 00:07:19,000
So this is nothing, but it is a more of a equal to comparison, where it will be comparing between

152
00:07:19,000 --> 00:07:22,000
two identifiers and what value it has.

153
00:07:22,000 --> 00:07:22,000
Right.

154
00:07:22,000 --> 00:07:23,000
The the.

155
00:07:23,000 --> 00:07:27,000
It basically compares the value that is present within this particular data type.

156
00:07:27,000 --> 00:07:27,000
Okay.

157
00:07:27,000 --> 00:07:30,000
Then this is equal to operator.

158
00:07:30,000 --> 00:07:33,000
So here I'm let me go ahead and write equal to operator.

159
00:07:33,000 --> 00:07:34,000
And you can apply it.

160
00:07:34,000 --> 00:07:43,000
And on various different data types let's say I have str one, my string one I have like Krish okay.

161
00:07:43,000 --> 00:07:47,000
And str two I have crush, right?

162
00:07:47,000 --> 00:07:48,000
Same same string.

163
00:07:48,000 --> 00:07:49,000
Right.

164
00:07:49,000 --> 00:07:50,000
So capital crush and crush.

165
00:07:50,000 --> 00:07:57,000
Now if I go ahead and write str one double equal to STR2, then here you'll be able to see I'm getting

166
00:07:57,000 --> 00:07:57,000
true.

167
00:07:57,000 --> 00:07:58,000
Right.

168
00:07:58,000 --> 00:08:01,000
Let's say if I use a small k okay.

169
00:08:01,000 --> 00:08:03,000
Then you can see that I'm getting a false.

170
00:08:03,000 --> 00:08:06,000
So this comparison is also with respect to case sensitive right.

171
00:08:06,000 --> 00:08:10,000
So whatever data is present with respect to this it is just going to compare it okay.

172
00:08:10,000 --> 00:08:10,000
Okay.

173
00:08:10,000 --> 00:08:12,000
So this is uh, some type of operations.

174
00:08:12,000 --> 00:08:17,000
Uh, the next comparison operation that we are going to discuss is nothing but not equal to.

175
00:08:18,000 --> 00:08:18,000
Okay.

176
00:08:18,000 --> 00:08:23,000
So not equal to which is denoted by this exclamation not equal to.

177
00:08:23,000 --> 00:08:28,000
Now if I go ahead and just write str one is not equal to str two.

178
00:08:28,000 --> 00:08:34,000
So obviously based on this comparison you can say that this is exactly false because both of the strings

179
00:08:34,000 --> 00:08:34,000
are true.

180
00:08:34,000 --> 00:08:34,000
right?

181
00:08:34,000 --> 00:08:36,000
So that is the reason it is coming as false.

182
00:08:36,000 --> 00:08:42,000
Let's say if I go ahead and define again my string one and string two, let's say I go ahead and define

183
00:08:42,000 --> 00:08:44,000
it as string three.

184
00:08:44,000 --> 00:08:47,000
Uh string three.

185
00:08:47,000 --> 00:08:49,000
And then this will basically be my string four.

186
00:08:49,000 --> 00:08:54,000
And now let me make this as a small character okay.

187
00:08:54,000 --> 00:08:59,000
And let me go ahead and write s three str three is not equal to str four.

188
00:08:59,000 --> 00:09:01,000
Now it should probably give me a true value.

189
00:09:01,000 --> 00:09:02,000
Why?

190
00:09:02,000 --> 00:09:04,000
Because both of them are not equal right.

191
00:09:04,000 --> 00:09:09,000
So this was another operation that is not equal to okay.

192
00:09:09,000 --> 00:09:12,000
Now coming to the next one uh, which is basically called as greater than.

193
00:09:12,000 --> 00:09:15,000
So this will basically be greater than.

194
00:09:15,000 --> 00:09:20,000
So this is again a comparison operation, uh, which we can actually use, let's say, and this greater

195
00:09:20,000 --> 00:09:25,000
than operation, let's say I have a value like 45 is equal to 45.

196
00:09:25,000 --> 00:09:30,000
Or let me just go ahead and one number one, uh, 45, number two is 55.

197
00:09:30,000 --> 00:09:34,000
Now if I go ahead and write, number one is greater than, uh, number two.

198
00:09:34,000 --> 00:09:35,000
Right.

199
00:09:35,000 --> 00:09:38,000
So the answer may be false because number one is obviously small over here.

200
00:09:38,000 --> 00:09:41,000
So here you can probably see that I'm actually getting false.

201
00:09:41,000 --> 00:09:42,000
Right.

202
00:09:43,000 --> 00:09:46,000
So this is uh one example of greater than operation.

203
00:09:46,000 --> 00:09:50,000
And uh similarly if greater than is there then obviously less than should also be there.

204
00:09:50,000 --> 00:09:54,000
So less than operation which is denoted by.

205
00:09:54,000 --> 00:09:59,000
This greater than operation is basically denoted by this okay.

206
00:09:59,000 --> 00:10:02,000
Now in this case if I want to execute less than.

207
00:10:02,000 --> 00:10:05,000
So again if I go ahead and execute num one is less than num two.

208
00:10:06,000 --> 00:10:09,000
So here you'll be able to see that I'm able to get true right.

209
00:10:09,000 --> 00:10:11,000
You can also print this result.

210
00:10:11,000 --> 00:10:15,000
At the end of the day, I'm actually going to get a boolean value itself because this is a comparison

211
00:10:15,000 --> 00:10:16,000
operation.

212
00:10:16,000 --> 00:10:20,000
And with respect to all the comparison operation we are either going to get true or false.

213
00:10:20,000 --> 00:10:21,000
Okay.

214
00:10:21,000 --> 00:10:23,000
Now this is fine line less than.

215
00:10:23,000 --> 00:10:24,000
Is there greater than is there.

216
00:10:24,000 --> 00:10:28,000
Now obviously you also have something called as greater than or equal to right.

217
00:10:28,000 --> 00:10:34,000
So let me just go ahead and write greater than or equal to right.

218
00:10:34,000 --> 00:10:38,000
So here uh, let me just go ahead and show you once more, one more example.

219
00:10:38,000 --> 00:10:41,000
Let's say that, um, um, I have a number one.

220
00:10:41,000 --> 00:10:47,000
Number one is equal to 45 and number two is equal to 45.

221
00:10:47,000 --> 00:10:47,000
Okay.

222
00:10:48,000 --> 00:10:57,000
Uh, now if I go ahead and put this condition number one is greater than or equal to number two.

223
00:10:58,000 --> 00:11:01,000
So I'm basically going to get the answer right over here as true.

224
00:11:01,000 --> 00:11:04,000
Because obviously this is equal.

225
00:11:04,000 --> 00:11:06,000
At least one of the condition is basically getting true.

226
00:11:06,000 --> 00:11:07,000
Right.

227
00:11:07,000 --> 00:11:13,000
So if I go ahead and print it you'll be able to see this right now here you can actually see that yes,

228
00:11:13,000 --> 00:11:15,000
everything is working fine and I'm able to get true.

229
00:11:15,000 --> 00:11:15,000
Now.

230
00:11:15,000 --> 00:11:20,000
Similarly there is one more comparison operation which is nothing but less than or equal to.

231
00:11:20,000 --> 00:11:24,000
Now, in this particular case, if I apply the condition less than or equal to two, again, I'm going

232
00:11:24,000 --> 00:11:27,000
to get true because 45 is equal to 45.

233
00:11:27,000 --> 00:11:31,000
So one of the condition is getting matched less than or equal to right.

234
00:11:31,000 --> 00:11:36,000
If I go ahead and probably, uh, let's say in 40 number one, I go ahead and write 44.

235
00:11:36,000 --> 00:11:40,000
Then also it is going to be true because, uh, this condition is getting matched because number one

236
00:11:40,000 --> 00:11:41,000
is less than number two.

237
00:11:41,000 --> 00:11:42,000
Right.

238
00:11:42,000 --> 00:11:44,000
So over here, this is another one operation.

239
00:11:44,000 --> 00:11:45,000
Right.

240
00:11:45,000 --> 00:11:50,000
So just you got an idea about various comparison operation, uh, that we have actually done.

241
00:11:50,000 --> 00:11:51,000
Now, let me do one more thing.

242
00:11:51,000 --> 00:11:57,000
Uh, let me just go ahead and, uh, talk about logical operators.

243
00:11:57,000 --> 00:11:57,000
Okay.

244
00:11:57,000 --> 00:12:04,000
So here I'm going to basically create a field and let's say I'm going to write logical operators.

245
00:12:04,000 --> 00:12:04,000
Right.

246
00:12:04,000 --> 00:12:07,000
So one is that we have discussed about comparison operators.

247
00:12:07,000 --> 00:12:13,000
So let me make a cell over here so that for your reference purpose also it becomes easy right.

248
00:12:13,000 --> 00:12:18,000
So for cell comparison operators.

249
00:12:18,000 --> 00:12:18,000
Okay.

250
00:12:18,000 --> 00:12:19,000
Done.

251
00:12:19,000 --> 00:12:20,000
Perfect.

252
00:12:20,000 --> 00:12:21,000
So comparison operators.

253
00:12:21,000 --> 00:12:23,000
And here you have all the things right.

254
00:12:23,000 --> 00:12:25,000
And now we are going to discuss about logical operators.

255
00:12:25,000 --> 00:12:34,000
Now logical operators basically means the 311 is and one is uh not okay.

256
00:12:34,000 --> 00:12:35,000
And one is or.

257
00:12:36,000 --> 00:12:37,000
Right.

258
00:12:37,000 --> 00:12:40,000
So most common operation in logical operator is something like this.

259
00:12:40,000 --> 00:12:43,000
Now let me talk about this right.

260
00:12:43,000 --> 00:12:49,000
In the case of and you know and if you know about digital logic gates, I hope in college at least some

261
00:12:49,000 --> 00:12:56,000
idea you have about it in case of and when both A and B right are true, then only you will be able

262
00:12:56,000 --> 00:12:59,000
to get the output as true, otherwise it will be completely false.

263
00:12:59,000 --> 00:13:00,000
What do I mean by that?

264
00:13:00,000 --> 00:13:02,000
Let's say I have two boolean variable.

265
00:13:02,000 --> 00:13:03,000
One is x.

266
00:13:03,000 --> 00:13:06,000
Let's say it is true right now.

267
00:13:06,000 --> 00:13:13,000
In this particular case, if my y is also true right now, if I go ahead and write okay, let's say

268
00:13:13,000 --> 00:13:21,000
that I go ahead and create my result and let me go ahead and write it as X and C and operation.

269
00:13:21,000 --> 00:13:30,000
We have to use Y right now if I go ahead and print my result, if I go ahead and print my result, you'll

270
00:13:30,000 --> 00:13:33,000
be able to see that I'm able to get true right?

271
00:13:33,000 --> 00:13:34,000
Because both of them are true.

272
00:13:34,000 --> 00:13:35,000
Right?

273
00:13:35,000 --> 00:13:41,000
But in this particular case, if I just copy this and paste it over here and this case now, let me

274
00:13:41,000 --> 00:13:47,000
say that if y is false, then if I go ahead and execute it, it's going to come false, right?

275
00:13:47,000 --> 00:13:53,000
Even though this may be true and this may be false, then also I am able to get false.

276
00:13:53,000 --> 00:13:59,000
So in the case of and operation right always you need to make sure that whenever both the variable will

277
00:13:59,000 --> 00:14:04,000
be boolean true, then only your output will be true, right in the case of an operation.

278
00:14:04,000 --> 00:14:07,000
Now let's go ahead and understand about our operation.

279
00:14:07,000 --> 00:14:17,000
Now, in the case of our operation, uh, only in the case of only in the case when x and y are false,

280
00:14:18,000 --> 00:14:24,000
x and y are false, then only we are going to get the output as false.

281
00:14:25,000 --> 00:14:27,000
Uh, the remaining all the time.

282
00:14:28,000 --> 00:14:30,000
If I keep it as true or false or true?

283
00:14:30,000 --> 00:14:31,000
True.

284
00:14:31,000 --> 00:14:32,000
Uh, okay.

285
00:14:32,000 --> 00:14:32,000
Uh, sorry.

286
00:14:32,000 --> 00:14:33,000
This is.

287
00:14:33,000 --> 00:14:33,000
And.

288
00:14:33,000 --> 00:14:33,000
Right.

289
00:14:34,000 --> 00:14:34,000
Okay.

290
00:14:34,000 --> 00:14:40,000
Or now, any time you'll be able to see whenever I keep x, X, either one of them is true or both of

291
00:14:40,000 --> 00:14:42,000
them is true, I'm always going to get the output as true.

292
00:14:43,000 --> 00:14:47,000
Otherwise, if both of them are false, I'm always going to get the output as false.

293
00:14:47,000 --> 00:14:51,000
So this is the most important thing with respect to the Or operation, right?

294
00:14:51,000 --> 00:14:57,000
And finally you'll be able to see that I also have another operation which is called as not and not

295
00:14:57,000 --> 00:15:00,000
operation is nothing, but it is the reverse.

296
00:15:01,000 --> 00:15:03,000
It is just a reverse of a boolean variable, right?

297
00:15:03,000 --> 00:15:05,000
What do I mean by that?

298
00:15:05,000 --> 00:15:08,000
Let's say I have x is equal to true.

299
00:15:08,000 --> 00:15:08,000
Right?

300
00:15:08,000 --> 00:15:11,000
And if I go ahead and write not of x then what?

301
00:15:11,000 --> 00:15:14,000
I'm able to get c inverse of this x right.

302
00:15:14,000 --> 00:15:17,000
So here I'm able to get false right.

303
00:15:17,000 --> 00:15:19,000
So not is nothing.

304
00:15:19,000 --> 00:15:21,000
But it is an inverse of any boolean variable.

305
00:15:21,000 --> 00:15:27,000
So if this boolean variable is false then if I go ahead and write not of x then I'm actually able to

306
00:15:27,000 --> 00:15:28,000
see that I'll be getting true.

307
00:15:28,000 --> 00:15:29,000
Right.

308
00:15:29,000 --> 00:15:33,000
So here we have discussed various comparison logical operators.

309
00:15:33,000 --> 00:15:37,000
Again it will be important for various arithmetic operations as such.

310
00:15:37,000 --> 00:15:45,000
One uh good code example arithmetic or uh simple calculator will be designing and you can probably check

311
00:15:45,000 --> 00:15:46,000
out this code okay.

312
00:15:46,000 --> 00:15:51,000
So here you can see I'm giving float enter first number second number.

313
00:15:51,000 --> 00:15:55,000
And you are performing addition subtraction, multiplication, flow division, modulus exponentiation.

314
00:15:55,000 --> 00:15:57,000
And here you are displaying it.

315
00:15:57,000 --> 00:15:58,000
So let's go ahead and execute this.

316
00:15:58,000 --> 00:16:04,000
So if I go ahead and write uh 12 and execute it for execute it.

317
00:16:04,000 --> 00:16:06,000
So here is what is my output.

318
00:16:06,000 --> 00:16:06,000
Right.

319
00:16:07,000 --> 00:16:10,000
So I hope uh you were able to understand regarding operators.

320
00:16:10,000 --> 00:16:12,000
Uh, this was it from my side.

321
00:16:12,000 --> 00:16:13,000
Uh, yeah.

322
00:16:13,000 --> 00:16:16,000
Uh, I will see you all in the next video.

323
00:16:16,000 --> 00:16:16,000
Thank you.

324
00:16:16,000 --> 00:16:16,000
Take care.

