Python for Absolute Beginners Transcripts
Chapter: Course setup and requirements
Lecture: Setting up an editor

Login or purchase this course to watch this video and the rest of the course contents.
0:00 In addition to Python
0:01 you're going to need to be able to write code.
0:04 Now, truthfully, any text editor will let you write code
0:08 but it is very important that you have one
0:10 that understands Python and understands programming concepts
0:13 because you'll be many, many more times effective
0:16 and it'll catch all the errors for you.
0:18 You'll see what we mean throughout this course
0:19 but I'm going to recommend a handful of editors
0:21 that you could use, all of which are free
0:24 and it's going to make you really much, much more comfortable
0:27 and it'll catch the errors and help you out as you go.
0:30 So we're going to have a couple of levels of editing code.
0:34 We're going to start out just by playing with code
0:37 in this thing called a REPL
0:39 a Read Eval Print Loop, R-E-P-L.
0:42 Now, we actually saw that before
0:44 when I was just trying to check if I had Python.
0:45 I typed python3 without any extra stuff
0:48 and I got something that looked kind of like this.
0:50 This is an interactive way
0:52 where you can explore little bits of Python code.
0:54 You can see I said X is 10, Y is 98, Z is 24
0:58 and I multiplied them all together
1:00 and got some kind of answer out.
1:02 This is not how we write normal computer code.
1:05 You can't save this.
1:06 You can't easily get this back.
1:08 So if you're going to write a real program
1:10 you should save it to a file
1:11 and then you feed that file to Python.
1:13 But in the very early stages of this course
1:16 when we're just playing with simple, simple ideas
1:18 we're just going to open this up and see what's happening.
1:21 Okay, so this is level one.
1:22 We're going to do this just for like a chapter or so
1:24 and then I'm going to move on to writing real programs.
1:28 For that level, I'm going to be using something called PyCharm.
1:31 You already saw a screen shot of that.
1:33 Now, it says the Python IDE
1:35 Integrated Development Environment
1:37 for professional developers, and that is true.
1:40 Many professional developers use PyCharm.
1:42 It's extremely powerful and useful
1:44 but it's also one of the most helpful editors
1:47 for beginners as well.
1:49 The reason is it gives you all this help.
1:51 You're going, "I want to use this library,"
1:53 and you start to type it
1:54 and it'll show you all the things you can do with it.
1:56 It'll give you automatic help.
1:58 It'll check for errors before you even run them
2:01 and run into those problems, all kinds of great stuff.
2:04 So we're going to be using PyCharm.
2:05 There's a paid version, the Professional version
2:08 and there's a free Community Edition.
2:10 We are going to be using the Community Edition.
2:13 If you have the Professional one, that's fine.
2:14 It's no harm with that, but you don't need to get it.
2:17 That one costs money.
2:18 The free Community Edition, as you can imagine, is free
2:22 so we're going to be using that one
2:23 and it's totally capable for what we need for this course.
2:26 The best way to get it is to install this thing
2:29 called the JetBrains Toolbox.
2:31 So you can go download it.
2:32 I think you might have to log in.
2:34 I'm not entirely sure if you got to create an account or not.
2:36 But notice how it has PyCharm Professional in this list
2:39 and then those are the installed ones.
2:41 If you scroll down farther, it says, "Available."
2:43 Just scroll down until you see PyCharm Community.
2:46 Click that, and wait one minute
2:48 and you'll have PyCharm.
2:49 What's nice about this is it always keeps it up to date
2:52 and it gives you access to the other tools as well
2:54 that you might need.
2:55 So it'll say, "Hey, there's an update for your PyCharm
2:57 "You want to click here and get it?"
2:59 Yes. I do. This is nice.
3:01 Make sure you install it and get going.
3:03 If, for some reason, you don't want to use PyCharm
3:07 like I said, really nice, you'll see it super good.
3:09 I think it's the best editor for beginners.
3:12 If you don't want to use it for some reason
3:14 the other good choice these days
3:16 is something called Visual Studio Code.
3:18 This is free. It is open source.
3:20 It is available on all the different platforms
3:22 even though it's from Microsoft.
3:24 So you come over here.
3:25 You can see it, and it's a little under
3:26 and the important thing is once you install it
3:28 you also need to make sure you install the Python extension.
3:32 This thing has been downloaded 54 million times.
3:36 It's the most popular thing on Visual Studio Code
3:38 but if you don't install it
3:40 it's not going to understand Python
3:42 and it's not going to work right.
3:43 Click this little box here.
3:45 It opens up this dialogue
3:46 and it should have Python right at the top.
3:48 It seems like it's much more popular than all the others.
3:51 So click that, wait a few moments
3:53 and you'll have your Visual Studio Code ready to work
3:56 on Python.
3:57 Finally, there's one third option that you can consider.
4:01 I would recommend, really, PyCharm
4:03 and then Visual Studio Code
4:04 and then this, but there's a lot of folks
4:06 especially coming from the data science world
4:08 that like to work in something called JupyterLab
4:10 or Jupyter Notebooks
4:12 and you're welcome to use this, as well
4:14 as the way to work with the course.
4:16 There's a few little situations where it won't quite work
4:19 but for the most part, it'll be okay.
4:21 I'm not going to recommend this or use this
4:23 but I will, at the very end of the course
4:26 put an appendix if you want to install this.
4:28 It takes a few steps on configuring your system
4:30 to make it work, and then you have this editor as well
4:33 which is a interesting environment.
4:35 So you can use this for most of what you're doing
4:37 and check the appendix on how to get going with that.