1 00:00:03,250 --> 00:00:07,660 I want to quickly talk about something called augmented. 2 00:00:08,940 --> 00:00:09,810 Assignment. 3 00:00:13,370 --> 00:00:19,160 So we've learned that we can create variables like some value. 4 00:00:20,310 --> 00:00:21,480 And we can assign it. 5 00:00:22,610 --> 00:00:26,420 A data type in our case, let's just assign it five. 6 00:00:28,110 --> 00:00:33,700 There's something called augmented assignment operator that allows us to do something quite neat. 7 00:00:34,050 --> 00:00:34,680 Let's have a look. 8 00:00:35,690 --> 00:00:43,250 So if this value I want to increase in, let's say, five plus two, so add two to it. 9 00:00:44,480 --> 00:00:46,220 I could do that. 10 00:00:47,320 --> 00:00:54,850 Or I could even use some value, which is already five by the time it gets to line three and do something 11 00:00:54,880 --> 00:00:57,100 like this if I print. 12 00:00:58,590 --> 00:01:05,900 Some value and I click, run, I'll get seven because five plus two equals to seven. 13 00:01:06,150 --> 00:01:10,800 So in memory, some value points to seven. 14 00:01:12,540 --> 00:01:18,570 But there's a neater way of doing this called augmented assignment operator instead of doing something 15 00:01:18,570 --> 00:01:19,200 like this. 16 00:01:20,440 --> 00:01:21,940 I could just simply. 17 00:01:24,180 --> 00:01:33,990 Add a plus to the equals, so we're going to say some value plus equals two is still going to equal 18 00:01:33,990 --> 00:01:34,320 seven. 19 00:01:34,740 --> 00:01:36,240 So it's the same thing as before. 20 00:01:36,480 --> 00:01:41,870 And this skull augmented assignment operator, it's a shorthand of us doing something like this. 21 00:01:42,630 --> 00:01:49,170 We can also change this to something like minus, which once again is like subtracting two from whatever 22 00:01:49,170 --> 00:01:51,420 the previous value of. 23 00:01:54,590 --> 00:02:00,260 Now, if I was to do this at the beginning here, so let's just do here and then comment this out, 24 00:02:00,680 --> 00:02:01,580 if I click run. 25 00:02:03,000 --> 00:02:07,410 I'll get an error because some value is not defined. 26 00:02:07,440 --> 00:02:13,740 We haven't really created anything, so in order for this to work, we need to make sure that this variable 27 00:02:14,280 --> 00:02:15,990 has some previous value. 28 00:02:17,100 --> 00:02:19,960 So we've learned about the plus, the minus. 29 00:02:19,980 --> 00:02:26,220 And then finally, we have the multiply once again, if I run this, we get ten. 30 00:02:26,760 --> 00:02:32,010 Remember, this is just the same as us saying some value times to. 31 00:02:33,060 --> 00:02:35,910 Is just a shorthand for all right. 32 00:02:35,970 --> 00:02:39,670 This was a quick video in case you see something like this in the wild. 33 00:02:39,900 --> 00:02:41,310 Now, you shouldn't be afraid. 34 00:02:41,580 --> 00:02:46,020 Remember that the operator comes to the left of the equals sign. 35 00:02:46,850 --> 00:02:48,680 I'll see in the next one by.