WEBVTT 00:00.510 --> 00:02.400 Now that we know the basics. 00:02.520 --> 00:07.070 You started your first talent you should swap two variables. 00:07.350 --> 00:12.330 Let's assume that we have two variables x you've got two in the y equal five. 00:12.390 --> 00:15.960 You should write some code that contains these values. 00:16.050 --> 00:22.350 So in the end your program will hit home with this green X sequel 5 and y equal to at this point. 00:22.350 --> 00:28.070 I strongly encourage you to pause the video for a minute and create the program by yourself. 00:28.080 --> 00:33.220 Have a very simple idea is to write that X equal Y into y equal legs. 00:33.270 --> 00:41.020 But this is OK because when we tried a sequel why we lose the value of x for example esequiel 5 N Y 00:41.170 --> 00:42.210 qualify again. 00:42.330 --> 00:48.670 So this approach to rock what we need to do is save the variable x in that time for our environment. 00:48.680 --> 00:53.790 With that way a temporary variable that saves the value to another to recover the idea. 00:53.790 --> 00:56.630 It is really easy to write it down with programming. 00:56.640 --> 01:02.110 First we will initialize the variable x equal tool and white equal 5. 01:02.190 --> 01:12.730 Then we will create an algorithm temporary dividable is equal to where x x y and y equal temp. 01:15.180 --> 01:18.330 Finally we will print this out to the user. 01:18.480 --> 01:22.840 So print X and print y. 01:23.130 --> 01:29.300 As you can see here we have X equal to 5 and why it will to two. 01:29.520 --> 01:32.980 This solves the problem so we can stop here right. 01:33.000 --> 01:38.900 Nope I don't really like these where you think this would make you made the OK a program every dime 01:39.090 --> 01:41.270 and this base hiley in this exercise. 01:41.280 --> 01:43.960 You should try to find the best possible solution. 01:44.070 --> 01:49.510 They have a lock of say something we talk about fussell those front end optimized solution. 01:49.640 --> 01:50.450 Another read.