Placeholder Image

字幕表 動画を再生する

  • in this course I'm gonna teach you everything you need to know to get started programming in

  • python.

  • Python is one of the most popular programming languages out there,

  • and it's by far one of the most sought after for jobs

  • and so if you're trying to get a job

  • or you're trying to you know,

  • automate your life

  • or you try to write awesome scripts to do a bunch of different things than

  • python's for you

  • honestly

  • more and more developers every day are moving their projects over to python because it's such a powerful

  • and the surgeon

  • easy to use language,

  • a lot of programming languages out there just aren't very beginner friendly there's

  • a lot of syntax there's a lot of like little things that if you get wrong the program will yell at you.

  • python is the complete

  • opposite of that.

  • you basically just type out what you want to do in python does it it's that simple there's not

  • a whole lot of syntax to learn the learning curve is literally zero you jump in,

  • you can start writing your first program in seconds.

  • in this course

  • I'm gonna teach you guys.

  • everything you need to know to get started in python.

  • I designed this course

  • especially for python,

  • and each lesson has been specially designed with examples

  • that will help you along the way.

  • with so many people starting to learn python the question isn't,

  • why should you learn pipe on the question is why shouldn't you ?

  • and I think for a lot of people the reason they might not want to learn python is because they're intimidated or they're afraid that it's going to be too hard.

  • trust me I am going to hold your hand through this entire course we're going to talk about all the core concepts in python we're going to look at

  • everything you need to know

  • to start programming in python and start being confidence are writing scripts and start writing programs that are awesome in doing cool things in your life.

  • anyway

  • I'm super pumped to be teaching you guys python.

  • I can't wait to get started in this course

  • and I hope you guys stick around and fall along with the course and learn this amazing programming language

  • in this tutorial dominates three guys how to install python onto your computer.

  • and we're also going to install a text editor that we can use to write

  • our python programs

  • in.

  • so the first order of business is to actually install

  • python on your computer.

  • so we want to do is head over to your web browser

  • and

  • you want to go over here to this page it's just

  • www dot python dot org

  • forward slash

  • downloads

  • and on this

  • page there's

  • going to be

  • two buttons down here

  • and this is going to say download python three point six point three.

  • and at least

  • the version that I have right now or download python two point seven point one four.

  • so here's the thing about python there's actually two major versions of python

  • that are in use

  • currently

  • there is

  • python two

  • and there's python theories you can see over here,

  • this is like two point seven point one four

  • basically any python two

  • version we would just refer to as like python two

  • and here's like the latest

  • python three version.

  • and so there's these two versions that you can download and the first thing we have to decide on which version do we want to download.

  • and here's the basic difference

  • python

  • two

  • is a legacy version of python which basically means that

  • it's like an

  • old version and it's not being like actively maintained or supported

  • like officially by python anymore.

  • python

  • three is like the future of python it's like the newest version it's the one that's getting actively maintained and supported.

  • so there's pros and cons to picking either won

  • a lot of people say like python too

  • has been around longer and so there's more like

  • libraries there's basically just more python code written in python two

  • so therefore like there's a few more things that you can do in pipe onto then you can do in python three

  • but then again

  • python two is not supported and you know,

  • five or ten years from now

  • probably no one's going to be using it.

  • python three it like a site is like the future of python it's the newest version it's the one that

  • you know it's sort of being maintained going forward.

  • so for the purposes of this tutorial I'm going to be teaching you guys

  • python

  • three

  • so we're going to want to download python

  • three

  • now here's vaguely

  • if you learn python three or you learn python to the differences aren't very big.

  • there are a few differences in like some syntax and just so

  • you know little things here and there,

  • but if you learn python three you'll be able to jump right in and

  • code in python two as well don't let anyone

  • tell you that

  • you have to learn one of the other.

  • we're going to learn python three just because it's I think probably the best for a beginner to learn.

  • and so that's the one that we want to download so I'm just going to click download python three

  • and we're gonna go ahead and download

  • this version.

  • and when that's done downloading I'm going to head down to my downloads folder

  • and you'll see here we just have this file

  • doubleclick,

  • and we get this like python installer so I'm going to click through here,

  • and we'll be able to install python three on our computer

  • right when that's done and stalling we can just close out of this and we should begin to get us now we have python three

  • installed on our computer.

  • the next step

  • is we need to choose a text

  • editor so

  • we're going to be writing a bunch of code so we're going to need some you know environment of some program that we can write all that code in.

  • and really you can write python in any text editor you could write it in like a note pad or tax at it,

  • it doesn't really matter

  • but there are special

  • text editors that are designed

  • just for writing python code.

  • and these are called

  • id ease and not stands for

  • integrated development environment.

  • it's basically just a special environment where we can you know ron and execute our python code.

  • and it'll you know basically like tell us how we're doing so were

  • the only if we write something that's wrong or we

  • have errors it'll kind of

  • point us in the right direction of what we need to do to fix that stuff,

  • so in this course we're going to be using an idea

  • and

  • one of my favorites

  • and one of the most popular ity ease for python is called pi charm.

  • so I'm over here on this website.

  • it's called

  • jet brains

  • dotcom

  • forward slash

  • pi charm.

  • and this is the idea that we're gonna be using in this course

  • so I'm just gonna come over here and click this big download

  • now button

  • and we'll go ahead and

  • download this

  • pie charm program

  • right so I'm getting this page are here you can see there's two versions of pi charm

  • one as a professional version and that one's like paid they have to pay for it.

  • but then there's this community version down here and that's free and open source so I'm going to download this one

  • and this should have everything we need to get started using python

  • right when that finishes downloading I'm just going to

  • pull that up in my downloads folder

  • and

  • again we can just sort of

  • run this guy

  • and I'm on a mac so I'm going to have to drag it over to my applications folder.

  • all right so now have pi charm

  • and we have python

  • three installed on your computer.

  • so we're ready to start programming in

  • python.

  • in this tutorial we're going to create our first

  • python program.

  • and we're going to be able to run it and

  • see how everything works.

  • the first thing I want to do is open up

  • pi charm so pi charm was the

  • idea he the

  • integrated development environment

  • that we downloaded in the last tutorial so

  • I'm just going to go out and search for it on my computer

  • and I can just open it up

  • and we first opened up high charm we should basically just get a window

  • prompting us to create a project.

  • so you can see that down here.

  • actually the first thing I want to do though is come over here to configure

  • and I'm just going to

  • click on preferences.

  • and I actually want to

  • change the appearance

  • so

  • I'm gonna go ahead and

  • give this a theme so I just went over here to appearance and behavior appearance

  • and I'm gonna change the theme to

  • darker color

  • because I think it's a little bit easier to

  • use and look at,

  • but you don't have to do that if you don't want you

  • so

  • down here

  • I'm just going to click

  • create new projects

  • and it's going to

  • give us this little window right here so I can just name my project.

  • and I'm just going to name this

  • graph.

  • and then there's other option down here where it says interpreter.

  • now

  • what we wanna select

  • is

  • python version three

  • so if I click down here you'll notice that there's a couple different options.

  • so I'm on a mac computer

  • and

  • by default mac has

  • python

  • version two installed on it.

  • if you're on a windows machine I'm not sure if it does but

  • in this tutorial we're going to be using python three so you wanna make sure that you have python

  • three selected as the interpreter,

  • otherwise

  • you

  • might not be able to fully follow along with what we're doing in this video.

  • so now it's going to come down here and click

  • create.

  • and this is going to go ahead and create our projects

  • for us

  • right so now we have

  • our

  • python project

  • up and running,

  • and I'm sure you guys how we can create our first

  • python program,

  • so over here in this draft folder and this is just that project that we created.

  • I'm just going to right click

  • and I'm saying new

  • and I'm going to come down and click

  • python file so we want to create a new python file this will be our first

  • python program.

  • and

  • I can just give this a name,

  • so why don't we just call this

  • app

  • and it's going to click ok

  • all right so now we have our first

  • python file

  • open

  • and we can just start typing in some python so I want to show you guys.

  • does a very basic python program.

  • and this is just going to be a hello world programs so we're just gonna print something out onto the screen.

  • so when I say

  • what I want to do is I want to type out p r iyer anti prince

  • and wanted to have an

  • open and closed

  • parentheses

  • now

  • inside of those parentheses we can make some

  • quotation marks

  • and inside of the quotation marks I'm just going to tape out

  • hello

  • world.

  • so this is like a very basic python program.

  • and what this is gonna do is

  • it's just going to print out hello world

  • onto the screen.

  • and so now what I can