- 00:00:02 what's up guys and welcome to the first
- 00:00:04 video in my Python programming series
- 00:00:07 this series is designed to take someone
- 00:00:09 with absolutely no programming
- 00:00:11 experience and turn them into a coding
- 00:00:14 machine so what we'll do in this
- 00:00:17 specific video is that I'm going to
- 00:00:19 start off by explaining why you should
- 00:00:21 learn Python then we'll actually install
- 00:00:24 Python 3 which is the most up-to-date
- 00:00:26 Python version then well it's all a
- 00:00:29 program called sublime text which allows
- 00:00:33 you to write your code in a simple
- 00:00:35 manner and it also looks really nice so
- 00:00:37 that's why we're gonna use it for these
- 00:00:38 videos I'm going to show you a more
- 00:00:41 complex editor called PyCharm and later
- 00:00:44 videos but that will be and probably
- 00:00:46 like the fourth or fifth installment and
- 00:00:49 then finally to end this video we are
- 00:00:51 going to write our first basic Python
- 00:00:53 program and I also just want to note
- 00:00:57 that this tutorial series will work in
- 00:00:59 Windows Mac and Linux
- 00:01:02 so whatever setup you have it will work
- 00:01:05 alright so why should you learn Python
- 00:01:08 we'll to begin you could do almost
- 00:01:10 anything with it from web app
- 00:01:13 development to making simple games to
- 00:01:15 data science Python is a universal
- 00:01:18 language a second reason you should
- 00:01:21 learn Python is because it has a very
- 00:01:23 user-friendly syntax it is the language
- 00:01:26 this is the most like plain old English
- 00:01:28 and as a result of this it is very
- 00:01:30 approachable by users of all ages and
- 00:01:33 experience levels a third reason you
- 00:01:37 should learn Python is for the potential
- 00:01:39 career benefits Python developers can
- 00:01:42 expect to make about a hundred thousand
- 00:01:44 dollars a year and even if money is not
- 00:01:47 the most important thing to you being a
- 00:01:50 developer gives you a lot of flexibility
- 00:01:52 in your kind of career I mean you can
- 00:01:55 work from all over the world doing
- 00:01:58 remote software jobs which kind of gives
- 00:02:00 you a lot of flexibility in whatever you
- 00:02:03 want to do in your life and also I just
- 00:02:06 want to note that even if you don't want
- 00:02:08 to become a software developer Python
- 00:02:10 can help you in a lot of ways maybe you
- 00:02:12 want to
- 00:02:13 make a your own website or make a mobile
- 00:02:16 app Python puts you on the right track
- 00:02:19 to do that and also and no matter what
- 00:02:22 job field you are you usually can find a
- 00:02:25 way that programming can make your life
- 00:02:27 easier and a bunch of different jobs you
- 00:02:29 can automate tasks with the Python
- 00:02:32 programming language and save yourself
- 00:02:34 time all right if these reasons sound
- 00:02:37 good to you let's get started with this
- 00:02:39 tutorial series all right to begin the
- 00:02:45 installation process open up a new
- 00:02:47 internet tab doesn't matter what you use
- 00:02:49 and type in let me do a dot python.org
- 00:02:53 this is where you will get the python
- 00:02:56 language go to downloads and then you'll
- 00:03:00 see you have two options python 3.6 and
- 00:03:03 Python 2.7 we are going to download
- 00:03:06 Python 3.6 because it is the most
- 00:03:08 up-to-date version and the version that
- 00:03:10 the Python developers are actively
- 00:03:12 maintaining I think they will be phasing
- 00:03:14 out Python 2 over the next few years
- 00:03:18 click that it might take a little bit to
- 00:03:20 download I'm using a Windows machine but
- 00:03:23 as I said before this will also work on
- 00:03:25 Linux and Mac alright so click on the
- 00:03:32 download file and just wait for it to
- 00:03:34 load and yeah you see this if you're on
- 00:03:39 Windows you'll see Install Now and
- 00:03:40 before you click that make sure you add
- 00:03:43 python 3.6 to the path this will make
- 00:03:47 your installation process a lot easier
- 00:03:48 because the text editor that we will
- 00:03:50 install in a few minutes will easily be
- 00:03:53 able to find python 3.6 if this is
- 00:03:55 clicked so make sure that's clicked and
- 00:03:58 then hit install now and i don't think
- 00:04:01 if you're a mac or linux user you
- 00:04:02 probably won't see any sort of path
- 00:04:03 thing just do the normal installation
- 00:04:05 all right shouldn't take too long to
- 00:04:08 install all just time-travel real quick
- 00:04:16 all right I've successfully sped up time
- 00:04:18 and my Python installation is successful
- 00:04:21 so I can close out of this and then
- 00:04:23 we're going to go on to install our
- 00:04:25 second program and that is sublime text
- 00:04:28 3 there's a really good simple text
- 00:04:32 editor that you can write all sorts of
- 00:04:34 code from and pretty much any language
- 00:04:36 you want so it works with Python it
- 00:04:38 works with Java works with C C++ which
- 00:04:42 is a very bare-bones and just easy
- 00:04:44 language to understand so sublime text
- 00:04:47 comm enter and as you can see a
- 00:04:50 sophisticated test text editor for code
- 00:04:53 markup and prose and click download for
- 00:04:56 your operating system
- 00:04:59 all right cool it is downloaded so click
- 00:05:02 on the executable file yes I can't make
- 00:05:07 changes to my computer welcome to the
- 00:05:10 sublime text setup wizard yep the
- 00:05:12 default place is fine fine fine
- 00:05:15 install alright so now we have sublime
- 00:05:18 text 3 on our computer and we have
- 00:05:20 Python 3 so what we're gonna do now is
- 00:05:23 with whatever operating system you have
- 00:05:25 open up that newly downloaded sublime
- 00:05:29 text long text 3 is the most up-to-date
- 00:05:31 version you might have saw sublime text
- 00:05:33 2 on my computer but I am now using
- 00:05:35 sublime text 3 alright so now we have
- 00:05:39 this blank template so we're gonna write
- 00:05:41 our first very basic program and we're
- 00:05:45 gonna do we'll just say that so go and
- 00:05:49 just save your file as something like
- 00:05:51 test dot py it doesn't really matter
- 00:05:54 where you save it I'm just gonna save it
- 00:05:56 right here My Documents folder and make
- 00:05:59 sure you include this dot py file
- 00:06:02 extension that's how the sublime text
- 00:06:05 knows that it is a Python file and it
- 00:06:07 will run with the Python interpreter
- 00:06:10 accordingly so save that and then what I
- 00:06:16 want you to do to check to see if your
- 00:06:17 python is working is type in print ok
- 00:06:21 let me make this a little bigger so you
- 00:06:22 can see
- 00:06:24 print hello world this is like the most
- 00:06:29 basic program in any language and we'll
- 00:06:32 put a couple exclamation points in for
- 00:06:35 good measure
- 00:06:36 save that with ctrl s and if you're on a
- 00:06:39 Mac or Linux it might be command s so
- 00:06:43 just know that and then you can go to
- 00:06:47 your tools and you can actually build
- 00:06:49 the Python code with control B for me
- 00:06:53 might be command B for Mac users do that
- 00:06:56 and yes click Python that's right and as
- 00:07:00 you can see it ran it down there just
- 00:07:02 print it out hello world and one thing I
- 00:07:04 want to note is as a window user
- 00:07:07 everything will definitely be set up
- 00:07:09 successfully at this point in time but
- 00:07:12 as a Mac and Linux user you might
- 00:07:14 actually be using Python to by accident
- 00:07:16 so what I want you to do is type in the
- 00:07:19 top of your code import sis and then
- 00:07:22 type in print
- 00:07:26 sis top version and you don't have to
- 00:07:29 understand what I'm doing right now this
- 00:07:31 is just so you can check to see if you
- 00:07:33 have the right version on your computer
- 00:07:35 and if you run that so as I said before
- 00:07:38 you run it with control B or whatever it
- 00:07:41 says right here and or you can just go
- 00:07:45 to tools and click on the actual build
- 00:07:47 and as you can see tells me right here
- 00:07:51 that I do have python three point six
- 00:07:53 point four which is the most up-to-date
- 00:07:55 version of Python as I make this video
- 00:07:57 your number might be a little higher
- 00:07:58 than that the one thing is if your
- 00:08:01 number it starts with a two here then
- 00:08:04 you don't have Python 3 properly set up
- 00:08:07 in sublime text and we can fix that
- 00:08:10 really easily so what I want you to do
- 00:08:11 is go to tools go to build a system new
- 00:08:17 build system and in the description I
- 00:08:21 have a little piece of text there I want
- 00:08:24 you to copy that and paste it in the
- 00:08:29 untitled dot sublime build file so it
- 00:08:32 should look like this
- 00:08:33 and then you can go ahead and save that
- 00:08:35 and save it with a name like
- 00:08:38 Python space 3 because it'll make it
- 00:08:41 look better when you actually run with
- 00:08:42 this pill system say that and now if we
- 00:08:46 go over here to tools and build systems
- 00:08:51 you'll see I have Python so if you had
- 00:08:53 Python 2 running there that's what you
- 00:08:55 were running originally now if you
- 00:08:56 select your Python 3 option and run this
- 00:08:59 again it will show up with the three
- 00:09:02 point six point four and if you still
- 00:09:04 are getting an error go into this and
- 00:09:08 you probably have to change this Python
- 00:09:10 three so what you want to do is you want
- 00:09:14 to go into a new terminal on Mac or
- 00:09:16 Linux Windows users you should already
- 00:09:18 have been all set and type in which
- 00:09:20 python 3 and then whatever that value is
- 00:09:25 just copy that and paste it in right
- 00:09:28 where this is right here and then save
- 00:09:33 it again all right that's all I got for
- 00:09:37 now we've set up our Python environment
- 00:09:40 and we wrote our first very simple hello
- 00:09:42 world program if you run into any
- 00:09:45 problems during this tutorial feel free
- 00:09:46 to leave a comment down below and I'll
- 00:09:48 be sure to get back to you and then I
- 00:09:51 would be posting tutorial videos weekly
- 00:09:53 so make sure to subscribe to not miss
- 00:09:55 any of those peace