1 00:00:07,760 --> 00:00:13,910 Now, in this lesson, we're going to do some arithmetic operations so we can have some experience because 2 00:00:14,090 --> 00:00:20,700 there are some quite different arithmetic operations in Python as compared to the simple math. 3 00:00:21,170 --> 00:00:23,750 So let's create two variables here. 4 00:00:24,440 --> 00:00:29,810 X will be equal to five and Y will be equal to allow them. 5 00:00:30,050 --> 00:00:33,020 Let's print Y percent X. 6 00:00:33,440 --> 00:00:40,670 And what this mean is that simply when you divide white wakes, you obviously have something left because 7 00:00:40,670 --> 00:00:42,570 X is not the common deviser of white. 8 00:00:42,950 --> 00:00:45,890 So for that reason, the result here will be one. 9 00:00:47,220 --> 00:00:48,310 And you can see that. 10 00:00:48,380 --> 00:00:56,460 OK, and then this is one of the most weird symbols that you might not see and the other symbol, for 11 00:00:56,460 --> 00:00:57,330 example, how are we going? 12 00:00:57,360 --> 00:00:57,840 All right. 13 00:00:58,290 --> 00:01:00,960 Let's say two to the third. 14 00:01:01,860 --> 00:01:05,040 So in Python, you can simply write this. 15 00:01:05,490 --> 00:01:08,980 And this means two to the third or two to the power of three. 16 00:01:09,810 --> 00:01:16,330 And obviously, if I run the code, you should get eight here, OK, because two to the power of three 17 00:01:16,680 --> 00:01:24,690 in this, how you write powers in Python, if you want to increment X by some number, you can either 18 00:01:24,690 --> 00:01:28,620 write X equals X plus Y. 19 00:01:29,010 --> 00:01:33,390 So everything on the left side is what we're going to take the values. 20 00:01:33,600 --> 00:01:38,230 And on the right side, these are the actual values that are going to be used for the equation. 21 00:01:38,550 --> 00:01:40,450 So here there is no problem to do that. 22 00:01:40,950 --> 00:01:47,850 This means that here X will be equal to the previous value of X, which is five plus eleven, which 23 00:01:47,850 --> 00:01:49,110 is going to be sixteen. 24 00:01:49,530 --> 00:01:51,270 OK, so let's run the code. 25 00:01:52,180 --> 00:01:59,920 And you are getting nothing because you need to print X, so I write print X and now we can see we're 26 00:01:59,920 --> 00:02:00,760 getting 16. 27 00:02:01,180 --> 00:02:09,700 An easier way to write this is by simply writing X plus equals Y. 28 00:02:10,020 --> 00:02:14,890 OK, and this means the same as the other equation. 29 00:02:15,120 --> 00:02:19,780 It is just more simple way and faster way to do the same operation. 30 00:02:19,810 --> 00:02:21,060 And you are getting 16. 31 00:02:21,250 --> 00:02:24,820 Obviously you can do this forever. 32 00:02:24,830 --> 00:02:31,990 Operation X multiplied equals white or X minus of course Y. 33 00:02:32,950 --> 00:02:33,700 And so on.