Hello and welcome to my video that shows how to get started and install Python on Microsoft Windows. Okay, so it's not too hard. We're going to both install Python 3 and we're going to install text editor. And so I'm just going to go into Google and I'm going to say, install Python 3. And my top link is Downloading Python. And there is my link for downloading Python 3.5.2. This version of my class uses Python 3. I have an earlier class that you may have seen that uses Python 2. But in this class, we're going to do this. Now it might take you a while to download this. I've actually already downloaded it. Now the other thing we need is a programmer text editor. And you can really use any programmer text editor. We've used Notepad+ in the past. We've used JEdit in the past. I liked Atom.io. T-O-M. .Io mostly because it works the same on Windows and Mac and Linux. But you can really use any text header that you like, just don't use Word or TextEdit that comes with the operating system. You need a programming editor that doesn't mess with weird characters or weird lines or strange formats >> You must have a real programmer editor. And so I'm going to down, I've already downloaded this as well. And so I won't waste the time waiting to download it but let's go ahead and do the installation. So these things ended up in my Downloads file, so I'll go to Downloads. And I'll start installing Python 3.5.2. Now it's going to ask me some things. Add Python 3.5 to the path. Yeah, that's a good idea. Install the launcher for all users. I'm going to add that. Maybe you will, maybe you won't do that. It's going to tell me where it's going to install it. Install Now. [SOUND] Of course, it's going to ask me for permission to do these things. And now it's running through the installation. Okay, so there we go. You could maybe click on this online tutorial and documentation, but we're just going to close this. And I'm going to start and run the Windows command line. Now, you may have all kinds of fancy ways to run Python but I like running the command line. C-O-M-M-A-N-D. I like running the command line because after a while it's important to know what folder things are being run in. and so here's this command line and I should be able to type Python here. And so now I'm in Python 3.2 and this is the chevron prompt. Here is the Python interpreter where it's asking for Python commands and I can say print. Hello world, of course this is what we tend to print all the time. I can make a mistake, I can say. Right, and it'll complain to me. Now, to get out of this, I can either type Ctrl+Z or quit. In this case, I'm going to type Ctrl+Z, and I'm back to the prompt. A couple of things, I can do a dir to see what folders and files I have, and that is like my desktop. And then the cd command tells me where I'm at in the folder, that means I'm in the user's directory doctor chart, okay? So I have now installed Python. I ran the Python interpreter to verify it. I said, print Hello World. Okay, and so now what I'm going to do is I'm going to actually install Atom. And I already had this downloaded, so let's go ahead and install Atom on my computer. Okay, so Atom is now installed and it's kind of telling us what to do. I'm going to actually just close all these windows, close this window, close everything, and I'm going to create a file. I'm going to say print, in this case, let's see if I can make this bigger, I can make it bigger, so I'm going to type print, hello from a file, okay, and I'm going to save this. I'm going to say File, Save as, and what I'm going to do is I'm going to go to my desktop, And I am going to make a folder on the desktop. I'm going to call this folder py4e. So I now have a folder on the desktop. Move this here and move this here. Oops. And I'm going to go into py4e and then I'm going to name this file first.py. And you'll notice that when I save this, it's syntax highlighted it. That's one of the nice things about a programmer editor. Okay? And so it says, it's got a suffix of .py. So therefore it knows that it's supposed to look pretty with Python and make this one color, make this another color. The other thing that you'll notice is that I now have a folder called py4e. And if I'm in this command line, let me just start that up again. I'll show you how to start the command line again. Command, now if I do a dir, I see the folders that I'm in. And one of the folders that you can see here is the desktop folder. So I'm going to say cd.desktop, and then I'm going to type the dir command to see what folders are in the desktop. These folders are the same as these folders. This things are kind of virtual folders. Py4e is py4e. Now I can type cd, which stands for change directory, py4e and I can do a dir and now you see first.py and that's the same as if I'm diving into this folder. Here's this file, first.py, Windows hides the suffix, which is somewhat annoying and frustrating, but that suffix is there, that file is there. And so for me, one of the things you gotta figure out in Windows is how to make sure you are in the same folder, Users\drchu\Desktop\py4e, and that's the name of this file, and here as well. And now I'm going to run this program. I'm going to type python first.py. And you see that it ran the Python code. Okay? Another way you can do this is you could type first.py. And that's because this file association has happened in Windows. This doesn't work in Macintosh. This only works in Windows, that all files with .py are expected to be Python. And it knows the Python interpreter where to run it. Okay, and so I've got Python 3.0 installed and that gets me started and so I hope that this little introduction about getting things started and writing your first Python program has been helpful to you.