1 00:00:00,090 --> 00:00:09,460 We have just talked about the assignment operators that are used in Python to assign values to relevance. 2 00:00:09,630 --> 00:00:14,400 Say for example if if we have an expression like this. 3 00:00:14,640 --> 00:00:21,180 This means the value five on the right is assigned to a variable on the left. 4 00:00:21,210 --> 00:00:32,160 Apart from the assignment of us we have compound operators in Python and the expression so making use 5 00:00:32,160 --> 00:00:36,180 of the compound operators looks something like this 6 00:00:38,650 --> 00:00:53,220 less equal do fine this expression can be broken down as x equal to x plus y. 7 00:00:53,730 --> 00:01:05,930 So this expression the expression your at the value fight to the variable and later assigned the result 8 00:01:06,050 --> 00:01:16,310 to the same variable that does X say for example if we have two variables and we would like to use a 9 00:01:16,310 --> 00:01:25,750 compound operator on these two variables we would like to use the multiplication operated something 10 00:01:25,750 --> 00:01:40,300 like this X dot equal to Y and this expression can be broken down and do X equal to X dot white. 11 00:01:40,380 --> 00:01:51,690 So the variables x and y multiplied and the result is assign back to the method of the these are the 12 00:01:51,690 --> 00:01:58,080 different Python assignment operators that can be used in other court when required. 13 00:01:58,350 --> 00:02:02,340 Let us know discourse about operator precedents. 14 00:02:02,780 --> 00:02:09,510 Operator precedents determine the order in which the operations are processed. 15 00:02:09,810 --> 00:02:18,590 The python interpreter doesn't read process operators from left to right. 16 00:02:18,600 --> 00:02:28,590 Instead the Python interpreter the bank's operators by importance and processes them in a specific sequence. 17 00:02:28,830 --> 00:02:32,550 And this is called the audit of operations. 18 00:02:32,550 --> 00:02:43,840 Say for example in this expression the multiplication operator has precedence or word the addition operator. 19 00:02:44,560 --> 00:02:56,650 So the multiplication expression is evaluated first and then the resultant value is added to the value 20 00:02:56,650 --> 00:02:58,030 filing. 21 00:02:58,030 --> 00:03:04,570 And if you want to alter the evaluation the you can use the parenthesis. 22 00:03:04,630 --> 00:03:14,260 Say for example you want to just add the numbers five and forward and then multiply the result with 23 00:03:14,260 --> 00:03:15,960 the number three. 24 00:03:16,090 --> 00:03:21,340 In that case you can use these that emphasis function like this. 25 00:03:21,340 --> 00:03:27,320 So parenthesis can override the precedent of arithmetic operators. 26 00:03:27,370 --> 00:03:29,900 Let's consider another case here. 27 00:03:29,920 --> 00:03:36,010 The operators multiplication and division have the same precedence. 28 00:03:36,100 --> 00:03:43,500 In that case the order in which Python evaluate the expression is from left to right. 29 00:03:43,510 --> 00:03:46,740 If the operators have the same precedence. 30 00:03:46,750 --> 00:03:56,720 So in that case the numbers 10 and nine are multiplied and then that is added in number it is divided 31 00:03:56,720 --> 00:04:02,830 by three so let's check this in the python shed. 32 00:04:03,570 --> 00:04:12,120 Let's add two numbers here by plus for is nine. 33 00:04:12,560 --> 00:04:22,850 Now let's change this expression by inserting the medic medic operator. 34 00:04:22,930 --> 00:04:30,790 So this means the multiplication expression has been evaluated first and then the addition operator 35 00:04:33,660 --> 00:04:34,220 next. 36 00:04:34,260 --> 00:04:41,580 If we want to add the two numbers five and forward first and then the multiply the result with three 37 00:04:41,850 --> 00:04:47,360 you can use these parentheses so open parentheses. 38 00:04:47,520 --> 00:04:48,930 Plus Hollywood 39 00:04:52,330 --> 00:05:01,330 use the multiplication operator Monica multiply with three and if the operators have the same precedence 40 00:05:01,390 --> 00:05:08,820 like we have seen no discussion the expression is evaluated from left to right. 41 00:05:08,860 --> 00:05:19,090 So this is about or the operator president this table this all operators having highest president to 42 00:05:19,240 --> 00:05:20,290 the lowest.