 Hi, everyone! In this tutorial, we're going to talk about the order of operations in Python language. If we have an expression with more than one operator, the order of evaluation depends on the order of operations. You can easily remember the order of operations by using this simple acronym PEMDAS, which you can easily remember by using this sentence, please excuse my dear Aunt Sally. The first letter P in this acronym stands for parentheses, which tell us that parentheses have the highest precedence. With usage of parentheses, we can force an expression to evaluate the order that we want. Okay, let's make a simple example by using parentheses. For example, let's say that we have an expression 5 times 3 plus 1. The result is going to be 16, because 5 times 3 is 15 and plus 1 is 16. But with usage of parentheses, we can force an expression to evaluate in the order that we want. I'm going to force this same expression to be evaluated in a different order. This time, first, we're going to add these two numbers, 3 plus 1, which is 4, and then we're going to multiply number 5 and number 4, which is number 20. Then in this acronym, E stands for exponentiation, and exponentiation has the next highest precedence. Let's make one simple example here. Let's say 4 plus 3 to the power of 2, and we're going to get the result 13, because first, we're going to evaluate this part of expression. Number 3 to the power of 2 is equal to 9, because 3 times 3 is 9, and 4 plus 9 is equal to 13. And of course, with usage of parentheses, you can force this expression to evaluate in a different order. For example, you can say 4 plus 3 times 2, which is going to be 49, because first, we're going to get the result of 4 plus 3, which is 7, and 7 to the power of 2 is 7 times 7, and that's 49. Okay, let's back again here to our acronym PEMDAS. Now we have MND. MND stands for multiplication and division, so multiplication and division have higher precedence than addition and subtraction. Let's make a few simple examples that proves that. For example, 3 plus 4 times 5, the result is 23, because first, we're going to multiply these two numbers. 4 times 5 is equal to 20, and plus 3, 20 plus 3 is 23, so here multiplication has higher precedence than addition. It's same with subtraction. Let's make another example. For example, 6 minus 4 divided by number 2, and here we have subtraction and division. Division has higher precedence than subtraction, so first, we're going to get the result of 4 divided by 2, which is 2, and then 6 minus 2 is number 4. And finally, in our acronym A and S stands for addition and subtraction. They have the lowest precedence. That's all in this tutorial. Thanks for watching. Don't forget to subscribe to my channel. See you in the next tutorial.