1 00:00:01,530 --> 00:00:03,840 - [Narrator] Once you've downloaded the zip file 2 00:00:03,840 --> 00:00:06,050 containing the examples, you'll want 3 00:00:06,050 --> 00:00:08,500 to extract its contents. 4 00:00:08,500 --> 00:00:11,130 And we assume that you're going to place the examples 5 00:00:11,130 --> 00:00:15,380 folder into your user accounts documents folder. 6 00:00:15,380 --> 00:00:19,440 Typically, you can do that simply by double clicking 7 00:00:19,440 --> 00:00:22,650 the zip file and, depending on which operating system 8 00:00:22,650 --> 00:00:25,970 you're using, you may want to move the zip file 9 00:00:25,970 --> 00:00:30,030 into your documents folder first before doing that. 10 00:00:30,030 --> 00:00:34,170 And it will then automatically extract the contents 11 00:00:34,170 --> 00:00:37,280 into that folder or give you a dialogue in which 12 00:00:37,280 --> 00:00:41,500 you can select where you would like to place the examples. 13 00:00:41,500 --> 00:00:44,510 Now, once you navigate into the examples folder, 14 00:00:44,510 --> 00:00:48,100 you're going to find three kinds of examples. 15 00:00:48,100 --> 00:00:50,260 There is going to be a sub folder called 16 00:00:50,260 --> 00:00:54,940 snippets underscore P-Y, which contains the individual 17 00:00:54,940 --> 00:00:59,320 code snippets that you can execute with the Ipython 18 00:00:59,320 --> 00:01:01,300 interactive interpreter. 19 00:01:01,300 --> 00:01:04,610 And you can execute those a couple of different ways. 20 00:01:04,610 --> 00:01:08,100 The way I would recommend it, as you're learning Python, 21 00:01:08,100 --> 00:01:12,730 is to simply go ahead and type the snippets yourself. 22 00:01:12,730 --> 00:01:15,870 And then, once you become more familiar with the language, 23 00:01:15,870 --> 00:01:19,920 you could copy and paste individual snippets, as well. 24 00:01:19,920 --> 00:01:22,480 You're also going to find complete scripts 25 00:01:22,480 --> 00:01:25,140 which are also dot P-Y files. 26 00:01:25,140 --> 00:01:29,040 Those will be in each individual lesson's directory. 27 00:01:29,040 --> 00:01:31,770 And then finally, there will be another sub folder 28 00:01:31,770 --> 00:01:36,000 called snippets underscore I-P-Y-N-B, 29 00:01:36,000 --> 00:01:39,460 which is the filename extension for a special type 30 00:01:39,460 --> 00:01:41,660 of file called a Jupyter Notebook. 31 00:01:41,660 --> 00:01:46,400 And in lesson one, we're going to show you how to execute 32 00:01:46,400 --> 00:01:49,830 each of these three different kinds of snippets. 33 00:01:49,830 --> 00:01:52,730 So, once you become familiar with all three ways 34 00:01:52,730 --> 00:01:56,070 of doing things, my recommendation would be that you work 35 00:01:56,070 --> 00:01:59,750 in the context of Jupyter Notebooks because it is 36 00:01:59,750 --> 00:02:01,900 the most convenient overall, 37 00:02:01,900 --> 00:02:06,460 especially if you want to really experiment and retry things 38 00:02:06,460 --> 00:02:08,810 that you've done previously. 39 00:02:08,810 --> 00:02:12,000 Now, within the examples folder, you'll see a bunch 40 00:02:12,000 --> 00:02:14,790 of sub folders that are organized by chapter 41 00:02:14,790 --> 00:02:18,140 or, in the context of videos, by what we call lessons. 42 00:02:18,140 --> 00:02:22,450 Those are named C-H with two-digit number after that. 43 00:02:22,450 --> 00:02:24,930 That represents the chapter or lesson number, 44 00:02:24,930 --> 00:02:29,820 so CH01 would be the examples that correspond to lesson one. 45 00:02:29,820 --> 00:02:32,850 CH02 would be the examples that correspond 46 00:02:32,850 --> 00:02:35,120 to lesson two, et cetera. 47 00:02:35,120 --> 00:02:38,343 So let's take a moment and look at the examples folder. 48 00:02:40,550 --> 00:02:43,530 In this case, I'm showing you the contents of the examples 49 00:02:43,530 --> 00:02:47,330 folder on my Macintosh computer, but of course this will 50 00:02:47,330 --> 00:02:50,230 look similar on each different operating system 51 00:02:50,230 --> 00:02:52,740 you may be watching the videos from. 52 00:02:52,740 --> 00:02:56,670 And, as you can see, CH01 for the first lesson, CH02 53 00:02:56,670 --> 00:02:58,720 for the second lesson, et cetera. 54 00:02:58,720 --> 00:03:02,270 Within those folders, you're going to sometimes see 55 00:03:02,270 --> 00:03:04,810 individual dot P-Y files. 56 00:03:04,810 --> 00:03:08,840 Those are going to represent either complete working 57 00:03:08,840 --> 00:03:11,950 Python programs, which we refer to as scripts, 58 00:03:11,950 --> 00:03:15,590 or possibly in some of the later lessons, 59 00:03:15,590 --> 00:03:19,520 these will represent source code that's going to be 60 00:03:19,520 --> 00:03:23,720 imported, as we call it, into other applications and 61 00:03:23,720 --> 00:03:27,740 typically would contain shared code that we want to use 62 00:03:27,740 --> 00:03:29,930 across multiple examples. 63 00:03:29,930 --> 00:03:32,820 Now you'll also notice these other two sub folders. 64 00:03:32,820 --> 00:03:35,837 Most of the chapters will have these two sub folders, 65 00:03:35,837 --> 00:03:37,810 and most of the lessons. 66 00:03:37,810 --> 00:03:41,440 These snippets underscore P-Y again is going to contain 67 00:03:41,440 --> 00:03:44,950 dot P-Y files similar to the ones up above here, 68 00:03:44,950 --> 00:03:48,240 but where in each of those files, 69 00:03:48,240 --> 00:03:51,120 you have a bunch of individual snippets that are meant to be 70 00:03:51,120 --> 00:03:55,380 executed one at a time as you follow the presentation. 71 00:03:55,380 --> 00:03:58,830 And we also provide those same exact snippets 72 00:03:58,830 --> 00:04:03,200 in the context of I-P-Y-N-B files for those of you 73 00:04:03,200 --> 00:04:06,550 who wish to work in the context of Jupyter Notebooks. 74 00:04:06,550 --> 00:04:11,550 And you'll see both standard Ipython and Jupyter Notebooks 75 00:04:12,380 --> 00:04:16,300 in lesson one, where I overview both of those 76 00:04:16,300 --> 00:04:19,120 for the purpose of executing the code in these videos. 77 00:04:19,120 --> 00:04:22,660 Then you can kind of make the choice as to which way 78 00:04:22,660 --> 00:04:25,603 you'd like to execute the code on your own.