WEBVTT 1 00:00:04.720 --> 00:00:06.640 In the previous video we installed 2 00:00:06.640 --> 00:00:10.510 Python 3.6 onto this computer. Now it's 3 00:00:10.510 --> 00:00:13.090 time to have a quick look at idle. 4 00:00:13.090 --> 00:00:14.770 Now when developing software in any 5 00:00:14.770 --> 00:00:16.750 programming language, integrated 6 00:00:16.750 --> 00:00:19.180 development environment or IDE makes 7 00:00:19.180 --> 00:00:21.550 life a lot easier for developers, so that 8 00:00:21.550 --> 00:00:23.230 allows you to enter compile and run your 9 00:00:23.230 --> 00:00:24.700 programs from within that program 10 00:00:24.700 --> 00:00:26.680 without having to leave that program or 11 00:00:26.680 --> 00:00:29.320 editor to actually run and execute your 12 00:00:29.320 --> 00:00:31.000 program so you can avoid using the 13 00:00:31.000 --> 00:00:32.710 command line for a lot of programming. 14 00:00:32.710 --> 00:00:35.559 Now Python provides a very simple IDE 15 00:00:35.559 --> 00:00:37.719 called idle which we installed with 16 00:00:37.719 --> 00:00:39.280 Python in the previous video. 17 00:00:39.280 --> 00:00:41.980 Now the name idle is a homage to Eric 18 00:00:41.980 --> 00:00:43.960 Idle one of the members of the comedy 19 00:00:43.960 --> 00:00:46.569 group Monty Python, the idle interfaces 20 00:00:46.569 --> 00:00:49.960 directly with the Python interpreter. 21 00:00:49.960 --> 00:00:51.429 Now for a number of reasons, that will become 22 00:00:51.429 --> 00:00:52.870 apparent as we progress through the 23 00:00:52.870 --> 00:00:56.229 course, we just using IntelliJ IDEA or 24 00:00:56.229 --> 00:00:59.379 pycharm instead of idle and in fact in 25 00:00:59.379 --> 00:01:00.399 the next video, we're going to show you 26 00:01:00.399 --> 00:01:02.739 how to go about installing it but if you 27 00:01:02.739 --> 00:01:04.540 prefer to stick with idle for any reason 28 00:01:04.540 --> 00:01:07.150 or if you have to access idle we just 29 00:01:07.150 --> 00:01:08.170 really want to find out a little bit 30 00:01:08.170 --> 00:01:10.450 about it, it can sometimes be very useful. 31 00:01:10.450 --> 00:01:12.370 So in this video I'm going to show you how 32 00:01:12.370 --> 00:01:14.500 to use the basics of idle. Now we're 33 00:01:14.500 --> 00:01:16.000 going to assume that you installed it as 34 00:01:16.000 --> 00:01:18.340 shown in the last video, so we're going 35 00:01:18.340 --> 00:01:19.870 to start in this case because we're on 36 00:01:19.870 --> 00:01:21.820 Windows, we want to start idle from the 37 00:01:21.820 --> 00:01:23.560 Windows Start menu, I'm going to come 38 00:01:23.560 --> 00:01:25.870 down here and I'm going to type in idle. 39 00:01:25.870 --> 00:01:28.180 So you may need to navigate to the 40 00:01:28.180 --> 00:01:30.160 programs file and select data which will 41 00:01:30.160 --> 00:01:32.920 be in the Python area that where Python 42 00:01:32.920 --> 00:01:34.450 was installed but in my case you saw it 43 00:01:34.450 --> 00:01:36.850 pop up there automatically, so idle is 44 00:01:36.850 --> 00:01:39.250 what we want python 3.16 and press enter 45 00:01:39.250 --> 00:01:41.470 and that it'll loads up this is we share 46 00:01:41.470 --> 00:01:42.460 which was going to put in the middle of 47 00:01:42.460 --> 00:01:44.110 the screen, what I'm going to do is 48 00:01:44.110 --> 00:01:45.670 size that up so it's a little bit easier 49 00:01:45.670 --> 00:01:47.440 to see and you can check that it's the 50 00:01:47.440 --> 00:01:49.600 right version by checking the message 51 00:01:49.600 --> 00:01:51.010 that appears, you can see here python 52 00:01:51.010 --> 00:01:53.140 three point six point two and that of 53 00:01:53.140 --> 00:01:54.700 course was the version of python that we 54 00:01:54.700 --> 00:01:56.800 installed in the previous video. 55 00:01:56.800 --> 00:01:58.510 Alright so once idle is running anything 56 00:01:58.510 --> 00:02:00.970 you type will be passed to the Python 57 00:02:00.970 --> 00:02:03.280 interpreter and the results displayed on 58 00:02:03.280 --> 00:02:05.920 the screen. Now ordinarily in a program, 59 00:02:05.920 --> 00:02:08.140 you need to use the print statement to 60 00:02:08.140 --> 00:02:09.849 display result and you'll learn a lot 61 00:02:09.849 --> 00:02:12.370 more about that in later videos but you 62 00:02:12.370 --> 00:02:13.990 don't actually need to do that in the 63 00:02:13.990 --> 00:02:16.330 idle shell and to demonstrate that I'm 64 00:02:16.330 --> 00:02:17.960 going to type two plus four 65 00:02:17.960 --> 00:02:22.100 two plus four press enter and you can see 66 00:02:22.100 --> 00:02:23.930 I immediately got the answer six showing 67 00:02:23.930 --> 00:02:26.270 on the screen there, so what happened 68 00:02:26.270 --> 00:02:28.370 here was I typed that code in 69 00:02:28.370 --> 00:02:30.500 the expression two plus four was passed on 70 00:02:30.500 --> 00:02:32.960 to Python and Python evaluated that 71 00:02:32.960 --> 00:02:34.820 and come back with the answer in this 72 00:02:34.820 --> 00:02:36.890 case six. Well so what we're going to do 73 00:02:36.890 --> 00:02:38.720 is just type in some code here. 74 00:02:38.720 --> 00:02:41.630 Now don't worry too much about exactly 75 00:02:41.630 --> 00:02:43.910 what this code means, you don't need to 76 00:02:43.910 --> 00:02:45.350 understand it at this stage of the 77 00:02:45.350 --> 00:02:47.450 course. The purpose of this video is just 78 00:02:47.450 --> 00:02:49.700 to show you how idle works, in later 79 00:02:49.700 --> 00:02:50.990 videos you're going to learn in detail 80 00:02:50.990 --> 00:02:52.850 the syntax of Python. 81 00:02:52.850 --> 00:02:54.800 So basically we're demonstrating Python 82 00:02:54.800 --> 00:02:56.540 not explaining the Python language at 83 00:02:56.540 --> 00:02:59.690 this stage. Now in the course examples 84 00:02:59.690 --> 00:03:01.190 you'll often have to enter code blocks 85 00:03:01.190 --> 00:03:03.260 which would blocks of code spanning 86 00:03:03.260 --> 00:03:05.720 several lines. Now idle knows when 87 00:03:05.720 --> 00:03:07.070 you're typing such a block and won't 88 00:03:07.070 --> 00:03:09.350 immediately execute anything until 89 00:03:09.350 --> 00:03:11.120 you've finished the block, you'll know 90 00:03:11.120 --> 00:03:12.440 it's expecting more text because the 91 00:03:12.440 --> 00:03:14.150 chevrons the three greater than signs 92 00:03:14.150 --> 00:03:15.950 which you'll see shortly well they won't 93 00:03:15.950 --> 00:03:19.070 reappear until you've finished but let's 94 00:03:19.070 --> 00:03:20.480 actually type in the code and you'll see 95 00:03:20.480 --> 00:03:21.260 what I mean here. 96 00:03:21.260 --> 00:03:24.380 So I'm going to start typing for space i 97 00:03:24.380 --> 00:03:27.740 in range noting the spaces I'm putting 98 00:03:27.740 --> 00:03:28.970 there and I'm typing everything in lower 99 00:03:28.970 --> 00:03:31.100 case and they want a set of parentheses 100 00:03:31.100 --> 00:03:33.170 then within the parentheses I want to 101 00:03:33.170 --> 00:03:35.750 type a number 10 and then at the end of 102 00:03:35.750 --> 00:03:36.800 that I want to type a colon. 103 00:03:36.800 --> 00:03:38.630 Now the colon at the end of the 104 00:03:38.630 --> 00:03:41.210 first line is very important and so is 105 00:03:41.210 --> 00:03:43.010 the indentation of the second line which 106 00:03:43.010 --> 00:03:44.480 you'll see when I press enter here, 107 00:03:44.480 --> 00:03:45.290 and press enter. 108 00:03:45.290 --> 00:03:48.950 And again notice as I mentioned I think 109 00:03:48.950 --> 00:03:50.510 something's changed there in the past 110 00:03:50.510 --> 00:03:52.340 when I typed in two plus four I got nine 111 00:03:52.340 --> 00:03:54.320 for six but here we haven't seen those 112 00:03:54.320 --> 00:03:56.030 little chevron's 3 greater than some 113 00:03:56.030 --> 00:03:57.890 ones appear and that's because pythons 114 00:03:57.890 --> 00:03:59.810 expecting something else. Now notice 115 00:03:59.810 --> 00:04:02.630 how it indented automatically for us, 116 00:04:02.630 --> 00:04:04.330 so we're going to type in now print 117 00:04:04.330 --> 00:04:08.360 parentheses i, I didn't do anything else 118 00:04:08.360 --> 00:04:09.620 and I'm going to press enter one more 119 00:04:09.620 --> 00:04:12.890 time. So we've now finished our simple 120 00:04:12.890 --> 00:04:14.450 little program, I'm going to press 121 00:04:14.450 --> 00:04:19.400 backspace to delete the indent. Now this 122 00:04:19.400 --> 00:04:21.140 tells all that we've finished the block 123 00:04:21.140 --> 00:04:23.180 and want to go ahead and press enter now 124 00:04:23.180 --> 00:04:26.150 it's going to execute the code and you 125 00:04:26.150 --> 00:04:27.830 can see that we've got the results of 126 00:04:27.830 --> 00:04:30.110 0 1 2 3 4 5 6 7 8 9. 127 00:04:30.110 --> 00:04:31.550 Now again don't worry too 128 00:04:31.550 --> 00:04:33.080 much about understanding the code, 129 00:04:33.080 --> 00:04:34.640 you don't need to understand the code at 130 00:04:34.640 --> 00:04:36.800 this stage, the point is you can see that 131 00:04:36.800 --> 00:04:39.230 idle has some basic capabilities to run 132 00:04:39.230 --> 00:04:42.230 Python code. Now this is all very useful 133 00:04:42.230 --> 00:04:44.060 for checking simple instructions but 134 00:04:44.060 --> 00:04:45.770 editing what you've typed isn't very 135 00:04:45.770 --> 00:04:47.810 intuitive. So let's just say we wanted to 136 00:04:47.810 --> 00:04:49.730 change the number 10 that you can see up 137 00:04:49.730 --> 00:04:53.270 here, we wanted to change that to the 138 00:04:53.270 --> 00:04:55.580 number 11. What we can do is move the 139 00:04:55.580 --> 00:04:57.620 cursor up to the previous line and press enter 140 00:04:57.620 --> 00:04:59.330 and idle will bring a copy of it down 141 00:04:59.330 --> 00:05:00.830 again running for modification and 142 00:05:00.830 --> 00:05:02.690 execution. So I'm going to move my cursor 143 00:05:02.690 --> 00:05:06.500 and go up to that line we're going to 144 00:05:06.500 --> 00:05:08.810 press enter and you can see it 145 00:05:08.810 --> 00:05:10.910 automatically copied that code down to 146 00:05:10.910 --> 00:05:12.710 the bottom and then I can move the 147 00:05:12.710 --> 00:05:14.990 cursor up one more lines change that to 11. 148 00:05:14.990 --> 00:05:16.610 I can delete out the zero and make it 149 00:05:16.610 --> 00:05:18.650 a 1, move the cursor down to the print 150 00:05:18.650 --> 00:05:22.460 line press enter and press backspace and 151 00:05:22.460 --> 00:05:23.560 then press enter, 152 00:05:23.560 --> 00:05:26.090 this time I'll execute it and you can see 153 00:05:26.090 --> 00:05:27.410 that we've got one additional number 154 00:05:27.410 --> 00:05:29.840 showing down the bottom. All right so 155 00:05:29.840 --> 00:05:31.400 that's one way of executing code and it 156 00:05:31.400 --> 00:05:32.810 can be useful we just want to check out 157 00:05:32.810 --> 00:05:35.270 a bit of code and see if it works. 158 00:05:35.270 --> 00:05:36.890 Now you often want to save programs 159 00:05:36.890 --> 00:05:39.230 in a separate file and run them from 160 00:05:39.230 --> 00:05:41.030 there. So what we're going to do now 161 00:05:41.030 --> 00:05:43.880 let's go to the file menu click on 162 00:05:43.880 --> 00:05:46.490 choose new file and you can see when we 163 00:05:46.490 --> 00:05:47.990 do that I get a little editor here 164 00:05:47.990 --> 00:05:50.210 little simple little text editor we're 165 00:05:50.210 --> 00:05:52.160 going to type in a program here and then 166 00:05:52.160 --> 00:05:53.990 we going to try running it, let me type 167 00:05:53.990 --> 00:05:59.000 in print and parentheses in double quotes 168 00:05:59.000 --> 00:06:04.430 hello world, so I can run that I can 169 00:06:04.430 --> 00:06:06.470 either come over here and select the run 170 00:06:06.470 --> 00:06:09.020 menu and run it that way, alternately I 171 00:06:09.020 --> 00:06:11.030 can press f5 which will do the same 172 00:06:11.030 --> 00:06:14.420 thing. So press f5 it comes up and says 173 00:06:14.420 --> 00:06:16.100 here that do you want to save the 174 00:06:16.100 --> 00:06:18.080 program before we run it? So let's go 175 00:06:18.080 --> 00:06:20.590 ahead and do that we'll click on save 176 00:06:20.590 --> 00:06:23.290 we're going to save it on my desktop 177 00:06:23.290 --> 00:06:27.580 we'll call it hello world press enter 178 00:06:27.580 --> 00:06:29.690 and you can see what happened was after 179 00:06:29.690 --> 00:06:31.970 I saved it, it went back to the other 180 00:06:31.970 --> 00:06:34.340 Python shell window and executed the 181 00:06:34.340 --> 00:06:36.740 code and it now gives us the name of the 182 00:06:36.740 --> 00:06:39.950 file that you used when the Python file 183 00:06:39.950 --> 00:06:42.200 was running. Now again would recommend that 184 00:06:42.200 --> 00:06:45.110 you use IntelliJ idea instead 185 00:06:45.110 --> 00:06:47.060 that's because idles fairly basic, 186 00:06:47.060 --> 00:06:49.190 it doesn't really provide any hints, code checking 187 00:06:49.190 --> 00:06:51.140 or all the other features of a full only 188 00:06:51.140 --> 00:06:53.450 like IntelliJ does, if you want to stick 189 00:06:53.450 --> 00:06:55.250 with idle though for some reason this 190 00:06:55.250 --> 00:06:57.080 brief introduction we'll have got to 191 00:06:57.080 --> 00:07:00.050 started. Now in installing IntelliJ IDEA 192 00:07:00.050 --> 00:07:01.490 when configuring will be covered in the 193 00:07:01.490 --> 00:07:04.310 next video, so here's a few reasons why 194 00:07:04.310 --> 00:07:05.810 you should consider using it rather than 195 00:07:05.810 --> 00:07:08.660 idle firstly IntelliJ IDEA has got code 196 00:07:08.660 --> 00:07:11.600 checking as you type, so IntelliJ 197 00:07:11.600 --> 00:07:13.160 checks your code as you type it in and 198 00:07:13.160 --> 00:07:15.260 flags errors with a marker in the right 199 00:07:15.260 --> 00:07:17.990 margin and it also suggests improvements 200 00:07:17.990 --> 00:07:19.640 in both of style of your code and the 201 00:07:19.640 --> 00:07:21.850 content and this is incredibly useful 202 00:07:21.850 --> 00:07:24.290 especially when starting out with a new language. 203 00:07:24.290 --> 00:07:27.140 Now auto-completion works across the 204 00:07:27.140 --> 00:07:29.480 various Python libraries to provide 205 00:07:29.480 --> 00:07:31.610 rapid selection of the methods and 206 00:07:31.610 --> 00:07:34.010 functions and hints on the syntax 207 00:07:34.010 --> 00:07:35.900 whereas autoloading copes with core 208 00:07:35.900 --> 00:07:38.390 functionality it's called auto indenting 209 00:07:38.390 --> 00:07:40.820 and also allows editing of XML and text 210 00:07:40.820 --> 00:07:43.130 files, so that the same tool can be used 211 00:07:43.130 --> 00:07:45.170 to examine data for excellent 212 00:07:45.170 --> 00:07:47.300 refactoring tools it's got a Python 213 00:07:47.300 --> 00:07:50.320 debugger, it's got support for DJango and 214 00:07:50.320 --> 00:07:53.420 also Google App Engine projects and the 215 00:07:53.420 --> 00:07:55.520 other is core thing is it also supports many 216 00:07:55.520 --> 00:07:57.680 languages in addition to Python Java 217 00:07:57.680 --> 00:08:00.170 scala, perl, groovy and many frameworks. 218 00:08:00.170 --> 00:08:02.150 so important is you really only need to 219 00:08:02.150 --> 00:08:04.460 learn one IDE for all development and 220 00:08:04.460 --> 00:08:06.290 also keep in mind that Google's Android 221 00:08:06.290 --> 00:08:08.270 studio for Android development, 222 00:08:08.270 --> 00:08:10.190 well that's basically IntelliJ IDEA under the 223 00:08:10.190 --> 00:08:12.320 hood. Now although we're going to be 224 00:08:12.320 --> 00:08:14.510 using IntelliJ IDEA in this course, 225 00:08:14.510 --> 00:08:16.250 you can use your favorite IDE instead if 226 00:08:16.250 --> 00:08:18.260 you prefer so if you're using something 227 00:08:18.260 --> 00:08:20.870 like eclipse or pycharm or one of the 228 00:08:20.870 --> 00:08:22.610 many other python IDEs then by all 229 00:08:22.610 --> 00:08:24.520 means go ahead and carry on using them. 230 00:08:24.520 --> 00:08:27.050 What I want to do now is finish by 231 00:08:27.050 --> 00:08:28.670 running a short program that we've 232 00:08:28.670 --> 00:08:30.860 created just to demonstrate some of the 233 00:08:30.860 --> 00:08:33.320 power on the Python language, now this 234 00:08:33.320 --> 00:08:34.790 program is going to collect exchange 235 00:08:34.790 --> 00:08:37.430 rate data from the internet then produce 236 00:08:37.430 --> 00:08:39.830 a graph showing three currencies for the 237 00:08:39.830 --> 00:08:42.800 last 12 months. Now this complete program 238 00:08:42.800 --> 00:08:45.020 is less than 100 lines of code and I 239 00:08:45.020 --> 00:08:46.370 think that's pretty impressive. 240 00:08:46.370 --> 00:08:48.470 Now generally what we strongly recommend 241 00:08:48.470 --> 00:08:50.420 is that you type in the code while 242 00:08:50.420 --> 00:08:51.890 watching the videos in this course, 243 00:08:51.890 --> 00:08:53.570 I really cannot stress that enough 244 00:08:53.570 --> 00:08:55.520 typing in code rather than just 245 00:08:55.520 --> 00:08:57.770 watching me type it really does help you 246 00:08:57.770 --> 00:09:00.810 learn faster and consolidate your learning to make 247 00:09:00.810 --> 00:09:02.250 to help you understand 248 00:09:02.250 --> 00:09:03.870 what you're doing. So that really is 249 00:09:03.870 --> 00:09:05.880 important and without going into a lot 250 00:09:05.880 --> 00:09:07.890 of Education of theory, you retain about 251 00:09:07.890 --> 00:09:10.410 80% of the things you do compared to 252 00:09:10.410 --> 00:09:13.620 that 30% of things that you see. Now if that 253 00:09:13.620 --> 00:09:15.510 doesn't persuade you, I'll add what we 254 00:09:15.510 --> 00:09:17.640 learned by typing in code, we didn't 255 00:09:17.640 --> 00:09:19.050 have the internet back then so back when 256 00:09:19.050 --> 00:09:21.090 myself and Jean Paul were starting out 257 00:09:21.090 --> 00:09:22.380 as programmers, we didn't actually have 258 00:09:22.380 --> 00:09:24.120 the internet back then so we actually 259 00:09:24.120 --> 00:09:25.950 copied the code from magazines and books 260 00:09:25.950 --> 00:09:28.620 there the act of typing it in makes you 261 00:09:28.620 --> 00:09:30.360 focus on each word that you're typing 262 00:09:30.360 --> 00:09:32.250 and correcting the typing errors 263 00:09:32.250 --> 00:09:34.170 afterwards really does help you to learn 264 00:09:34.170 --> 00:09:36.420 what's going on. And I'd also recommend 265 00:09:36.420 --> 00:09:38.220 that you watch each video again after 266 00:09:38.220 --> 00:09:40.050 you've typed the code, so you can focus 267 00:09:40.050 --> 00:09:42.120 on the explanation of what it's doing 268 00:09:42.120 --> 00:09:44.310 but with that said this next bits an 269 00:09:44.310 --> 00:09:46.140 exception to that and that's because 270 00:09:46.140 --> 00:09:47.550 this code that I'm about to show you is 271 00:09:47.550 --> 00:09:49.650 quite comple, so we've produced is 272 00:09:49.650 --> 00:09:51.330 program to show you the power of Python 273 00:09:51.330 --> 00:09:53.100 and there's a lot of things in the code 274 00:09:53.100 --> 00:09:54.690 that just won't make sense to you at the 275 00:09:54.690 --> 00:09:56.220 moment at this point in the course. 276 00:09:56.220 --> 00:09:58.230 And that's because this program that I'm 277 00:09:58.230 --> 00:10:00.060 going to show you uses functions 278 00:10:00.060 --> 00:10:02.490 generated as external modules and things 279 00:10:02.490 --> 00:10:04.860 like lists and tuples and probably all 280 00:10:04.860 --> 00:10:06.270 of that doesn't make sense but by the 281 00:10:06.270 --> 00:10:08.130 time you finish this course, you'll 282 00:10:08.130 --> 00:10:09.780 understand what all those things are and 283 00:10:09.780 --> 00:10:11.790 more importantly how to use them in your 284 00:10:11.790 --> 00:10:13.470 own programs, in fact you'll actually 285 00:10:13.470 --> 00:10:15.750 understand a lot more than that, for now 286 00:10:15.750 --> 00:10:17.280 though relax so let's just run this 287 00:10:17.280 --> 00:10:19.380 program to get a feel for what you can 288 00:10:19.380 --> 00:10:21.990 do with Python. So what we've done is 289 00:10:21.990 --> 00:10:24.360 we've made this program that we're going 290 00:10:24.360 --> 00:10:25.740 to be using freely available for 291 00:10:25.740 --> 00:10:27.030 download on the internet because it's 292 00:10:27.030 --> 00:10:29.220 such a small program, so you need to open 293 00:10:29.220 --> 00:10:33.250 a browser let's go ahead and do that, 294 00:10:33.250 --> 00:10:35.470 you need to go to the website learn 295 00:10:35.470 --> 00:10:38.260 programming academy as a learning 296 00:10:38.260 --> 00:10:40.480 programming dor academy forward slash and then 297 00:10:40.480 --> 00:10:45.310 we want to type in py download dot html and 298 00:10:45.310 --> 00:10:46.420 you can see the link there on the screen 299 00:10:46.420 --> 00:10:50.140 and press enter, it give you a simple 300 00:10:50.140 --> 00:10:52.420 little file pop-up and it's got an 301 00:10:52.420 --> 00:10:53.980 option here right click and save this 302 00:10:53.980 --> 00:10:54.940 file to your computer. 303 00:10:54.940 --> 00:10:57.400 So what we've done is we put this Python 304 00:10:57.400 --> 00:10:59.410 code on our website and we're now going 305 00:10:59.410 --> 00:11:01.030 to download that, so I'm going to come 306 00:11:01.030 --> 00:11:02.410 over here to this link I'm going to 307 00:11:02.410 --> 00:11:04.510 right click that link, click on save 308 00:11:04.510 --> 00:11:06.280 target s and it's going to save this 309 00:11:06.280 --> 00:11:07.690 onto my desktop, so I'm just going to 310 00:11:07.690 --> 00:11:09.730 click on desktop, you can see the name of 311 00:11:09.730 --> 00:11:11.350 the file in exchange underscore score chart 312 00:11:11.350 --> 00:11:13.450 and you can also notice it says save as 313 00:11:13.450 --> 00:11:15.160 type python file, so I will click on save 314 00:11:15.160 --> 00:11:18.460 and it was a very small file you can see 315 00:11:18.460 --> 00:11:19.510 that it's already finished down the 316 00:11:19.510 --> 00:11:20.920 bottom I'm going to close down the 317 00:11:20.920 --> 00:11:24.190 browser now and I'm back at idle now, 318 00:11:24.190 --> 00:11:26.020 so from the file menu what we can do now is 319 00:11:26.020 --> 00:11:28.990 click on file select open you want to go 320 00:11:28.990 --> 00:11:32.140 to our desktop and we want to click on 321 00:11:32.140 --> 00:11:34.270 exchange chart you can also see the 322 00:11:34.270 --> 00:11:35.680 other hollow world program that we 323 00:11:35.680 --> 00:11:38.110 created earlier in this videos and now 324 00:11:38.110 --> 00:11:44.530 we're going to select open. Now you can 325 00:11:44.530 --> 00:11:46.870 see that's the code that has been 326 00:11:46.870 --> 00:11:49.000 downloaded and that we've now opened in 327 00:11:49.000 --> 00:11:51.310 idle and if you're not familiar with 328 00:11:51.310 --> 00:11:52.720 Python, I'm sure that probably looks very 329 00:11:52.720 --> 00:11:54.490 complicated but as I said you're going 330 00:11:54.490 --> 00:11:56.080 to understand all of this and what it's 331 00:11:56.080 --> 00:11:58.360 doing is you work through the course. 332 00:11:58.360 --> 00:12:00.370 Alright, at this point let's actually run 333 00:12:00.370 --> 00:12:01.870 this program to see what it does so 334 00:12:01.870 --> 00:12:04.000 I'm going to press the f5 key remembering 335 00:12:04.000 --> 00:12:05.440 that I could also come up here to the 336 00:12:05.440 --> 00:12:07.540 run menu and click on run module 337 00:12:07.540 --> 00:12:08.830 chose to instead, so I'm going to click 338 00:12:08.830 --> 00:12:13.150 on f5 or press f5 so what's 339 00:12:13.150 --> 00:12:15.610 actually happening now is that in real 340 00:12:15.610 --> 00:12:17.380 time the Python program is actually 341 00:12:17.380 --> 00:12:19.450 downloading the current exchange rates 342 00:12:19.450 --> 00:12:22.150 for three currencies and it's been 343 00:12:22.150 --> 00:12:24.130 produced a chart as you can see there 344 00:12:24.130 --> 00:12:26.410 for the last 12 months for those 345 00:12:26.410 --> 00:12:28.000 countries so depending on when you run 346 00:12:28.000 --> 00:12:30.220 this, you'll find that the dates will be 347 00:12:30.220 --> 00:12:31.930 the last 12 months you can see right up 348 00:12:31.930 --> 00:12:34.690 here - August 2017 and that's the 349 00:12:34.690 --> 00:12:36.550 current month, there's basically showing 350 00:12:36.550 --> 00:12:38.410 the Australian dollars to Great Britain 351 00:12:38.410 --> 00:12:41.550 pound and the Euro against the US dollar 352 00:12:41.550 --> 00:12:44.080 and again the program displays the data 353 00:12:44.080 --> 00:12:46.990 for the last twelve months, so you get different 354 00:12:46.990 --> 00:12:50.170 follows along the x-axis. Now I don't 355 00:12:50.170 --> 00:12:51.160 know about you but I think that's pretty 356 00:12:51.160 --> 00:12:53.980 impressive for any 95 lines of code when 357 00:12:53.980 --> 00:12:56.350 you consider include it includes the 358 00:12:56.350 --> 00:12:59.470 code to download the relevant rates it 359 00:12:59.470 --> 00:13:01.300 actually charts the results for us 360 00:13:01.300 --> 00:13:03.910 automatically and you saw that it was 361 00:13:03.910 --> 00:13:05.020 pretty fast to boot. 362 00:13:05.020 --> 00:13:08.320 So I'll just close that down again, 363 00:13:08.320 --> 00:13:09.459 so again I'm not going to explain how it 364 00:13:09.459 --> 00:13:10.750 works at the moment because it uses a 365 00:13:10.750 --> 00:13:12.880 lot of Python features everything it 366 00:13:12.880 --> 00:13:14.380 does will be explained in the course 367 00:13:14.380 --> 00:13:15.850 so it all makes sense as you work 368 00:13:15.850 --> 00:13:18.430 through these videos. Alright, so that's 369 00:13:18.430 --> 00:13:20.950 the brief of idle. In the next video 370 00:13:20.950 --> 00:13:22.149 what we're going to do is install and 371 00:13:22.149 --> 00:13:25.660 configure another IDE IntelliJ IDEA, 372 00:13:25.660 --> 00:13:27.640 and we'll also talk about pycharm instead 373 00:13:27.640 --> 00:13:30.399 which looks exactly the same as IDEA but 374 00:13:30.399 --> 00:13:32.350 only supports python programming, as I 375 00:13:32.350 --> 00:13:33.730 said though if you're already using an 376 00:13:33.730 --> 00:13:35.709 IDE in it supports Python and you can 377 00:13:35.709 --> 00:13:37.300 continue to use that instead for this 378 00:13:37.300 --> 00:13:39.190 course, your screens will obviously look 379 00:13:39.190 --> 00:13:40.959 different to the videos but the code 380 00:13:40.959 --> 00:13:43.270 itself will be exactly the same. 381 00:13:43.270 --> 00:13:44.770 Alright, we'll finish the video here and 382 00:13:44.770 --> 00:13:47.970 I'll see you in the next one.