WEBVTT 00:00.210 --> 00:03.370 So now you already know how to create a viable at this point. 00:03.430 --> 00:08.760 This report does not to continue we send your command line you the to the final this nation to take 00:08.760 --> 00:09.180 a breath. 00:09.210 --> 00:13.920 In through the other stance these concern from a philosophical point of view a program increase only 00:13.920 --> 00:15.560 three different ideas. 00:15.580 --> 00:17.450 Laws state environments. 00:17.490 --> 00:22.200 So the only thing that stands between you and the creations of everything that you ever wanted to be 00:22.200 --> 00:22.880 a story there. 00:22.890 --> 00:28.160 Then how this procedure works and how you can combine them in your mind as ways you will create a masterpiece. 00:28.290 --> 00:33.810 I hope that the best way to deal with all of these and in amblin to give it's time to solve every problem 00:33.810 --> 00:34.540 on your own. 00:34.560 --> 00:35.590 Don't just watch the video. 00:35.620 --> 00:38.280 Basically this is not really the way in programming. 00:38.490 --> 00:41.780 I believe that you already know what this mauga look from your student years. 00:41.820 --> 00:45.830 If you don't then what is equal to that is on your mind. 00:52.830 --> 01:00.540 For example if we divide five with till we will half model or one indeed we divide four with tools we 01:00.540 --> 01:06.150 will have model of zede of the model of symbol in Python is the first cendon symbol as you can see here 01:06.150 --> 01:11.010 five mod to be equal to one end for mod to a sequel to zero. 01:11.010 --> 01:17.130 Now the interesting part is that we think that we can create our own model because every symbol in your 01:17.130 --> 01:21.010 programming language is actually a function which runs in the background. 01:21.120 --> 01:27.000 So from mathematics we can recall that there is equal to day multiplied by hour plus M. 01:27.090 --> 01:31.000 I'm not sure if we use the same symbols but the idea is always the same. 01:31.020 --> 01:36.790 Then number two that we want to divide is deep and enamour it is divided with is there in the final 01:36.800 --> 01:37.370 result. 01:37.380 --> 01:39.680 These are as you can understand. 01:39.760 --> 01:43.220 More do Law Order the final result is equal to m. 01:43.260 --> 01:46.410 One example will show purine other standard these equations. 01:46.590 --> 01:51.380 So let's assume that we want to calculate the 5 mod 2. 01:51.570 --> 01:55.910 There is sequel to 5 the sequel to 2. 01:56.070 --> 02:05.070 And there is out of course is 2 so 5 issue relative to a multiplied by two plus M with basic calculations 02:05.460 --> 02:07.000 is equal to 1. 02:07.050 --> 02:09.850 This is and is indeed if method to find m. 02:10.020 --> 02:18.770 You can again use it for mod 2 which basically is for a sequel to 2 multiplied by two plus M. 02:19.020 --> 02:21.210 So m is equal zero. 02:21.420 --> 02:27.630 So with that in mind M You see quoted there minus the multiplied by it is out. 02:27.630 --> 02:37.090 In this case the user already gives us their end of the day because we have 5 more to add. 02:37.230 --> 02:38.920 Now we need to find the result. 02:39.000 --> 02:41.380 How can the computer calculate this number. 02:41.420 --> 02:47.640 The ADA is basically really simple there is out the he's actually there in the dead part of the division 02:47.730 --> 02:52.650 between there and D for example 5 divided by 2. 02:52.760 --> 02:58.120 You see equal to to Comma 5 so the Indians are bad East to end. 02:58.140 --> 02:59.820 This can be used here. 03:00.070 --> 03:04.370 Not that we have already created the idea of the program with pen and paper. 03:04.380 --> 03:08.810 It is very easy to create a program so we need to have an input for the user. 03:09.030 --> 03:13.620 But I want to focus on the important unbound so we can just write it down. 03:13.620 --> 03:19.590 There is a quote for the user end and the issue go to t again from the user. 03:19.700 --> 03:22.230 No the computer don't need to calculate the result. 03:22.290 --> 03:31.380 So our sequal tool indictor part of the debt divided by the end a model a sequel to the minus there 03:31.440 --> 03:33.150 multiplied by is out. 03:33.190 --> 03:35.260 Finally we need to bring to the final result. 03:35.290 --> 03:37.150 So print them. 03:37.220 --> 03:41.320 Let's see there is out what the results are so correct. 03:41.940 --> 03:43.820 Let's try it again with 5. 03:44.180 --> 03:45.700 Okay again this is correct.