Python Tutorial for Beginners 1: Install and Setup for Mac and Windows

Corey Schafer
17 May 201715:28

Summary

TLDRThis tutorial series offers a beginner-friendly introduction to Python programming, covering essential topics such as installation, setting up the development environment, and the basics of Python syntax. The instructor guides viewers through installing Python on both Mac and Windows, using the terminal or command prompt, and demonstrates creating and running a simple 'Hello World' script. The video also touches on using different text editors and IDEs for Python development, with a focus on Sublime Text, Atom, and PyCharm, providing a foundation for further learning in the series.

Takeaways

  • πŸ˜€ The video series aims to cover the basics of Python programming for beginners or those coming from another language.
  • πŸ› οΈ The tutorial will guide viewers on how to install Python and set up a development environment on both Mac and Windows systems.
  • πŸ” It's recommended to install Python 3, as Python 2 is outdated and most users are transitioning to Python 3.
  • πŸ“š The script explains how to check if Python is pre-installed on a Mac and how to install the latest version from python.org if it's not.
  • πŸ”„ For Windows users, the video provides a step-by-step guide to install Python and includes adding Python to the system path for easy access.
  • πŸ’» The video mentions using the IDLE application that comes with Python for writing and running scripts.
  • πŸ“ The importance of creating a Python file for multi-line scripts is highlighted, as opposed to using the interactive prompt for testing single lines of code.
  • πŸ”‘ The script demonstrates how to write and run a simple 'Hello World' program in Python using both the IDLE application and a command line.
  • ✍️ Comments in Python, denoted by the '#' symbol, are used for developer notes and do not affect the script execution.
  • πŸ“˜ Alternative text editors and IDEs such as Sublime Text, Atom, and PyCharm are suggested for a better coding experience beyond the IDLE application.
  • πŸ”— Links to more detailed videos and timestamps for different parts of the installation process are provided in the video description for easy navigation.

Q & A

  • What is the purpose of this series of Python programming videos?

    -The purpose of this series is to provide a beginner's overview of Python, covering basics such as installation, data types, conditionals, loops, functions, modules, and the standard library, to help those new to programming or transitioning from another language.

  • Why is Python 3 preferred over Python 2 for new learners?

    -Python 3 is preferred because it is the newer and more modern version, with almost all current development and support focused on it. Python 2 is no longer maintained, making Python 3 the better choice for new learners.

  • How can one check if Python is already installed on a Mac?

    -On a Mac, one can check if Python is pre-installed by opening the terminal and typing 'python --version'. This will display the version of Python if it is installed.

  • What is the recommended way to install the latest version of Python 3 on a Mac?

    -The recommended way is to visit python.org, go to the downloads section, select the latest version of Python 3, download the .pkg file, and follow the installation instructions.

  • How can the 'Python' command be made to default to Python 3 instead of Python 2 on a Mac?

    -This can be achieved by creating an alias in the .bash_profile file that points the 'Python' command to 'Python3'. Adding the line 'alias python=python3' and saving the file will make this change.

  • What is the difference between the Python interactive prompt and a Python script file?

    -The Python interactive prompt allows for one-line commands to be entered and executed immediately. A Python script file, on the other hand, contains multiple lines of code that can be saved and executed as a whole.

  • How can a Python file be executed from the terminal or command prompt?

    -To execute a Python file, navigate to the directory containing the file in the terminal or command prompt and type 'python filename.py', replacing 'filename.py' with the actual file name.

  • What is IDLE and how is it used in the context of this tutorial?

    -IDLE is a basic Python Integrated Development Environment (IDE) that comes with Python. It can be used to write and run Python scripts. In the tutorial, it is used to create and execute the first Python script.

  • What are some alternative text editors or IDEs to IDLE for writing Python code?

    -Some popular alternatives to IDLE include Sublime Text, Atom, and PyCharm. These editors offer additional functionality such as syntax highlighting, code completion, and debugging tools.

  • How can Python scripts be run from within an alternative text editor like Sublime Text?

    -In Sublime Text, Python scripts can be run directly from the editor using the 'Tools' menu and selecting 'Build', or by using a keyboard shortcut configured for running the build.

  • What is the significance of comments in Python code?

    -Comments in Python, marked by the '#' symbol, are used to describe what the code is doing. They are ignored by the Python interpreter and serve as documentation for developers, helping to explain the purpose and functionality of the code.

Outlines

00:00

πŸš€ Introduction to Python Programming Series

The video script introduces a series focused on the basics of Python programming, aimed at beginners or those transitioning from other languages. The speaker plans to cover installation, data types, conditionals, loops, functions, modules, and the standard library. They mention that some topics will be briefly covered with references to more detailed videos for further exploration. The script also addresses the installation process for Python on both Mac and Windows operating systems, emphasizing the use of Python 3.6 as the version of choice.

05:02

πŸ’» Installing Python and Setting Up the Development Environment

This section of the script provides a step-by-step guide on installing Python for Mac users, including checking for pre-installed Python, downloading the latest version from python.org, and installing it. It explains how to create an alias to use the 'python' command for Python 3. The script then shifts to Windows installation, detailing the process of checking for Python, downloading it from the official site, and ensuring it's added to the system path. The speaker also discusses using the IDLE application that comes with Python for writing and running scripts.

10:04

✍️ Writing and Running the First Python Script

The script moves on to writing the first Python script using the IDLE application. It demonstrates how to create a new file, write a 'Hello World' print statement, and save the script. The process of running the script from the terminal or command prompt is explained. The video also touches on the use of comments in Python scripts for developer reference. The speaker suggests that while IDLE is sufficient for beginners, more advanced programmers might prefer other text editors or IDEs like Sublime Text, Atom, or PyCharm, which offer additional features.

15:04

🌟 Conclusion and Call to Action

The final paragraph wraps up the video by summarizing the content covered, which includes installing Python on Mac and Windows, running Python interactively, and creating and executing a Python script. The speaker previews the next topic of the series, which will be about variables and data types, specifically strings. They encourage viewers to ask questions in the comments and offer support by liking, sharing, or contributing through Patreon. A reminder to subscribe for future videos concludes the script.

Mindmap

Keywords

πŸ’‘Python programming

Python programming refers to the process of writing code in the Python language to create software applications. It is the main focus of the video, which aims to provide a beginner's overview of Python. The script discusses the basics of Python programming, including installation, setting up the development environment, and writing simple scripts.

πŸ’‘Development environment

A development environment is a set of tools and settings that facilitate the process of writing, testing, and debugging code. In the context of the video, the development environment involves installing Python and setting up a text editor or an IDE like IDLE, Sublime Text, or PyCharm, which are mentioned in the script.

πŸ’‘Data types

Data types define the kind of data a variable can hold, such as integers, strings, or lists. The video script mentions that the series will cover how to work with different data types in Python, which is fundamental for understanding how to store and manipulate data within Python programs.

πŸ’‘Conditionals

Conditionals are programming constructs that allow for branching in the execution of code based on whether a certain condition is true or false. The script indicates that the tutorial series will explain how to use conditionals in Python to control the flow of a program.

πŸ’‘Loops and iterations

Loops and iterations are mechanisms in programming that allow for the repetition of code blocks. The video script includes loops and iterations as part of the Python basics that will be covered, showing how to execute code multiple times with potentially changing conditions.

πŸ’‘Functions

Functions are reusable blocks of code that perform a specific task and can be called from other parts of a program. The script mentions creating functions as part of the Python programming basics, which helps in organizing and modularizing code for better maintainability and reusability.

πŸ’‘Modules

Modules in Python are files containing functions and variables that can be imported into other Python scripts. The video script discusses importing modules as a way to extend the functionality of Python programs by using pre-built code from other sources.

πŸ’‘Standard library

The standard library is a collection of modules that come with Python, providing a wide range of functionalities out of the box. The script mentions working with the standard library as part of the Python fundamentals, which includes using built-in modules for tasks like file handling, networking, and more.

πŸ’‘IDLE

IDLE is the Integrated Development and Learning Environment that comes with Python, designed for writing and testing Python scripts. The script uses IDLE as an example of a simple editor that beginners can use to write and run their Python code.

πŸ’‘Text editors

Text editors are programs used for editing plain text files, which is essential for writing code. The video script mentions text editors like Sublime Text and Atom, which offer more advanced features compared to basic editors like Notepad, and are suitable for Python development.

πŸ’‘IDE (Integrated Development Environment)

An Integrated Development Environment is a more advanced tool than a text editor, providing features like code completion, debugging, and project management. The script refers to PyCharm as an example of an IDE, which can enhance the Python development experience with its comprehensive set of features.

πŸ’‘Command prompt

The command prompt, also known as CMD on Windows, is a command-line interface for running commands and interacting with the operating system. In the script, the command prompt is used to check if Python is installed, to install Python, and to execute Python scripts.

πŸ’‘Terminal

The terminal is a command-line interface on Unix-based systems like macOS and Linux, allowing users to execute commands and manage files and processes. The script uses the terminal to demonstrate how to check for Python installation and to run Python scripts on a Mac.

πŸ’‘Comment

Comments in programming are lines of text that are ignored by the interpreter and are used to explain the code. The script shows how to add an inline comment in Python using the pound sign (#) and explains that comments are for developers to understand the code better.

Highlights

Introduction to a series of videos covering the basics of Python programming.

Addressing the need for a beginner's overview of Python for those starting out or coming from another language.

Coverage of setting up Python, working with data types, conditionals, loops, functions, modules, and the standard library.

Reference to more detailed videos for certain topics already covered.

Instructions on installing Python and setting up the development environment on both Mac and Windows.

Checking if Python is pre-installed on a Mac and how to check the Python version.

The recommendation to use Python 3 over Python 2 for new learners.

Downloading and installing the latest version of Python 3 from the official website.

Creating an alias to make 'Python' command default to Python 3.

Instructions for installing Python 3 on Windows, including adding Python to the system path.

How to verify the Python installation by checking the version in the command prompt.

Using IDLE, the Python editor that comes with the Python download, to write and run Python scripts.

Writing a 'Hello World' script in Python and running it from the terminal or command prompt.

Demonstration of how to write and run a Python script using a plain text editor.

Explanation of Python's inline comments and their usage in scripts.

Recommendations for alternative text editors and IDEs for Python development.

How to run Python scripts directly from an advanced text editor like Sublime Text.

Invitation for viewers to ask questions and support the tutorial series.

Transcripts

play00:00

hey there how's it going everybody in

play00:01

this series of videos we'll be going

play00:02

over the basics of Python programming

play00:04

now I get a lot of messages from people

play00:06

who say that they enjoy my Python videos

play00:07

but that they're either just getting

play00:09

started out in programming or coming

play00:11

from another language and would like a

play00:12

beginner's overview of Python so that

play00:14

they can better understand the more

play00:16

advanced topics and that's what we're

play00:17

going to do here we're going to cover

play00:19

how to get up and running with Python

play00:20

how to work with the different data

play00:22

types how to work with conditionals and

play00:24

loops and iterations how to create

play00:27

functions also importing modules and

play00:30

working with the standard library so

play00:31

basically everything that you need to

play00:33

know in order to have a firm

play00:34

understanding of the Python fundamentals

play00:36

now one thing I do want to point out is

play00:38

that throughout these tutorials I'm

play00:39

going to go over a few topics that I've

play00:41

already made eat more detailed videos

play00:43

about and anytime that happens I'll

play00:45

touch on the basics of that topic but

play00:46

then reference the more detailed video

play00:48

if you'd like to see more examples and

play00:50

that will allow us to move along at a

play00:51

good pace so let's go ahead and get

play00:53

started so first we're going to learn

play00:55

how to install Python and set up our

play00:57

development environment and we're going

play00:58

to look at how to do this on both Mac

play01:00

and Windows and this is pretty

play01:02

straightforward process

play01:03

so first we'll look at how to do this on

play01:05

a Mac but if you're on a Windows machine

play01:06

then you can look in the description

play01:08

section below and I'll put a link to the

play01:10

time stamp where we start the

play01:12

installation for Windows and that way

play01:13

you can skip ahead if you want or if you

play01:16

already have Python installed for your

play01:17

operating system and I also put a link

play01:19

to the time stamp or both of these

play01:21

installations are complete so that you

play01:22

can skip to where we're ready to write

play01:24

some code so for a Mac Python usually

play01:26

comes pre-installed the check if Python

play01:29

is pre-installed then we can just open

play01:31

up our terminal and within our terminal

play01:34

we can say Python - - version now we can

play01:38

see here that the default Python is

play01:40

Python - 7 now it used to be more

play01:42

controversial as to which version you

play01:44

want to use but almost everyone is

play01:46

moving over to Python 3 and if you're

play01:48

learning Python then you're definitely

play01:49

going to want to go with Python 3 unless

play01:52

you have a really good reason to do

play01:53

otherwise so let's go ahead and install

play01:55

the latest version of Python 3 so to do

play01:58

this we're just going to pull up an

play01:59

internet browser and we're going to go

play02:01

to the Python website which is here at

play02:03

python.org and from here we can go to

play02:06

downloads and we can see that it already

play02:08

detected that we're on a Mac and has

play02:10

offered up either python 3 or python 2

play02:13

and

play02:13

you want to go with the latest version

play02:14

Python 3.6 so that's going to download a

play02:18

pkg file and we will click on this to go

play02:21

ahead and start the installation now

play02:22

this is a pretty standard walkthrough

play02:24

here if you've installed software before

play02:26

then all a lot of this will look

play02:27

familiar so we're just going to agree to

play02:29

some terms you can change the install

play02:31

location if you want I'm just going to

play02:32

leave that as default and you may need

play02:35

to put in your password to install this

play02:37

now once that's finished installing it

play02:40

will place a Python 3:6 directory in

play02:43

your Applications folder and if we open

play02:45

up our Applications folder and scroll

play02:48

down here a bit and you can see I have

play02:50

an old version of Python 3 5 here but it

play02:52

installed this Python 3 6 and if we open

play02:55

this up and look inside here and we can

play02:57

see that we have this ID or Idol

play03:00

application and we'll come back to that

play03:01

in just a second so now that we have

play03:03

python 3 6 installed let's go back to

play03:06

our terminal and check our python

play03:09

version again so if i run that actually

play03:12

let me close down the terminal and open

play03:14

this back up just so that we're sure

play03:15

that we're starting with a fresh slate

play03:17

so now if I run that python version

play03:19

again then most likely you're going to

play03:21

see that it still says python 2 7 now

play03:24

the reason is because when we installed

play03:26

Python 3 it actually uses this Python 3

play03:29

command instead so if I instead use this

play03:32

Python 3 command and check that version

play03:34

and we can see that we get python 3 6

play03:37

that we just installed now if we want

play03:39

the Python command to use Python 3 then

play03:42

one way we can do this is to create an

play03:44

alias now to do this we can add a line

play03:47

to this dot bash profile file and if you

play03:51

don't know what that is then don't worry

play03:53

about it too much this is just going to

play03:54

allow us to associate the Python command

play03:57

with python 3 so you can use any editor

play04:00

to edit this file but since I'm already

play04:02

in the terminal I'm just going to go

play04:03

ahead and use nano and nano is pretty

play04:05

easy for beginners so I will say Nano

play04:08

now this is in your home directory so a

play04:11

tilde means your home directory and then

play04:13

a slash now this file is called bash

play04:16

underscore profile so now let's go ahead

play04:18

and open that up now within this file

play04:20

you might realize that I have some more

play04:21

content here than you do and these are

play04:24

just some personal customizations that I

play04:26

have but

play04:26

don't worry about any of this if I go to

play04:28

the bottom here and let me like make

play04:30

this just a little bit larger here now

play04:34

you should see that whenever you install

play04:36

the Python 3 that it actually added a

play04:38

few lines here at the bottom and you

play04:40

should have these lines also now setting

play04:43

this path variable like it's doing here

play04:45

is what allows the Python 3 command to

play04:49

work so we'll move down here below to

play04:52

the bottom and add an alias not to do

play04:55

this all we have to do is say alias

play04:58

Python equals Python 3 and you want to

play05:02

make sure it looks exactly like this no

play05:03

space between the equals or anything

play05:05

like that so now to save this we can

play05:08

just hit ctrl X to close hit Y that to

play05:11

say that we want to save it and then hit

play05:13

enter to keep that same filename so now

play05:16

if we quit out of our terminal and open

play05:18

this back up and now let's check that

play05:21

python version again so I'm going to do

play05:23

Python - - version and now we can see

play05:26

that it's using Python 3 6 now I

play05:29

probably should have mentioned this

play05:30

earlier but you do not have to create

play05:32

that Python alias if you wanted to you

play05:35

could just use that Python 3 command to

play05:37

run all of your scripts but I like to

play05:40

use this Python command so that's why I

play05:42

personally like to create the alias okay

play05:45

so now let's walk through how we install

play05:46

Python 3 for Windows now if you're on a

play05:51

Mac and want to skip through this part

play05:52

and you can click on the timestamp in

play05:54

the description below that skips forward

play05:56

when both of these installations are

play05:58

complete but this install for Windows

play06:00

actually doesn't take very long at all

play06:01

ok so to check if python is already

play06:04

installed we can open up our command

play06:06

prompt by going down here to start and

play06:08

then search for CMD and let's open up

play06:12

that and I'm going to make this font a

play06:14

little bit bigger so that we can see

play06:15

here I think I can click on properties

play06:17

and font and we'll go with something a

play06:20

little bit larger there okay now to see

play06:23

if we have access to Python we can just

play06:25

type in Python - - version and most

play06:28

likely you'll see that this is not yet

play06:30

installed and get this Python is not

play06:32

recognized err so to install this we can

play06:35

just open up an internet browser and go

play06:36

to the Python web site which is Python

play06:39

dot

play06:40

and from here we can click on downloads

play06:42

and from this page you can see that it's

play06:44

already detected that we are on Windows

play06:47

and has offered up either Python 3 or

play06:49

python 2 now if you're learning Python

play06:52

then you're definitely going to want to

play06:53

go with Python 3 unless you have a

play06:55

really good reason to do otherwise so

play06:57

let's go ahead and go with this download

play06:59

of python 3.6 so let's go ahead and run

play07:02

this download and we should get this

play07:05

pop-up so i'm going to go ahead and run

play07:07

that now this is an important step here

play07:09

one thing that you're going to want to

play07:10

do is click this option to add python 3

play07:14

6 to your path this will allow us to get

play07:17

by without going into the advanced

play07:19

system settings and setting this path

play07:21

manually and adding that to your path

play07:23

will allow the Python command to work

play07:25

within the command prompt so with that

play07:27

selected now let's go ahead and just

play07:28

click through this installation and it

play07:33

says that setup was successful so now

play07:35

that python is installed let's come down

play07:38

here to our command prompt and open it

play07:40

back up actually let's close this one

play07:42

down and start from scratch so we'll

play07:44

open this back up type in CMD and open

play07:47

up that command prompt again and now we

play07:49

can make sure that that installed by

play07:50

typing in Python and then - - version

play07:54

you can see here that it says that we're

play07:55

working with Python 3 6 so that's good

play07:58

now if we come down here and click on

play08:00

start and all programs and we'll see

play08:03

that we have this Python 3 6 folder here

play08:05

that was installed with python within

play08:07

this folder we can see that we have a

play08:09

program called idle and I'm going to

play08:12

come back to this idle program in just a

play08:14

second so when I mention this program

play08:16

then just remember that you can find it

play08:17

here within this Python 3 6 folder so

play08:20

that is how we install Python for

play08:22

Windows now I'm going to switch back to

play08:23

my native operating system on the Mac

play08:26

but from this point on python is going

play08:29

to work the same for both operating

play08:30

systems so everyone is going to be able

play08:32

to follow along ok so now I'm just going

play08:34

to go ahead and minimize that ok so now

play08:37

that we have Python installed now we can

play08:40

begin and go ahead and write our first

play08:42

bit of code by opening up either our

play08:44

terminal or our command prompt and I'll

play08:47

just close this installation window down

play08:49

in the back here and Center this ok so

play08:51

now within the terminal or command

play08:52

prompt if

play08:54

just type in Python and this will open

play08:56

what's called an interactive prompt and

play08:58

we can see that it shows that we're

play09:00

using Python 3 6

play09:03

now the interactive prompt allows us to

play09:05

write one line of Python at a time so

play09:07

for example for a hello world

play09:09

application then we could simply write

play09:11

print hello world and we can see that it

play09:15

prints that out and we can also set

play09:17

variables so I could say X is equal to

play09:20

equal to 10 and if I print out X then we

play09:25

can see that we get 10 now this

play09:27

interactive prompt is OK for testing

play09:29

Python commands but we really want to

play09:31

have a Python file where we can write

play09:33

multiple lines and run an entire script

play09:35

so let's exit this interactive prompt

play09:37

and we can do that by typing exit and

play09:39

then opening closed parenthesis so to

play09:42

create a Python file we're going to need

play09:44

some kind of plain text editor when we

play09:46

downloaded Python it came with an editor

play09:49

called idle so let's open up that idle

play09:51

program so again on windows that's in

play09:54

the Python 3 6 folder that we opened up

play09:57

earlier and on the Mac it's just down

play09:59

here and our applications and we can go

play10:01

ahead and open this up so I'm going to

play10:03

go ahead and make the font a little bit

play10:05

bigger here by going to my preferences

play10:07

just so that everyone can see and I'll

play10:09

bump this up to 18 or so okay I think

play10:12

that's good now by default when we open

play10:15

up idle this is just another interactive

play10:17

prompt where we can write one line at a

play10:19

time and you can usually tell when

play10:20

you're at an interactive prompt because

play10:22

of these three arrows here so to create

play10:25

an actual file we can click on file and

play10:28

new file now this will create a new file

play10:32

where we can write multiple lines of

play10:33

Python and actually make a script so for

play10:36

our first script let's just print out

play10:37

hello world like we did before we can do

play10:40

that by calling the print function and

play10:41

then these opening and closing

play10:43

parenthesis and then either single or

play10:45

double quotes and then typing in hello

play10:48

world now we're going to want to save

play10:50

this file so we can save this by

play10:51

clicking on file and then save and I'm

play10:55

going to call this intro dot pi and I'm

play10:58

just going to save this to my desktop so

play11:00

now I'll go ahead and save that so now

play11:04

to run the python file that we just

play11:05

created we can go back to our terminal

play11:08

or our command prompt and from here we

play11:10

can type in Python and then we want to

play11:13

type in the name of the file that we

play11:15

want to run now this is relative to the

play11:17

directory that we're currently in so if

play11:19

we're in our home folder and when you

play11:21

saved it to your desktop then that

play11:23

should be in desktop and then the name

play11:25

of that file is intro dot pi so if we

play11:29

run that and you can see that it printed

play11:31

out hello world so we just ran our first

play11:33

Python program now I still have this

play11:35

Python file up over here and real quick

play11:38

let me show you how to do a single

play11:40

inline comment and Python because I'll

play11:42

be using these inline comments

play11:44

throughout these tutorials and don't

play11:45

want them to throw you off so in my

play11:47

script here if I wanted to write a

play11:49

description of what's going on then I

play11:52

could add a comment and to do this we

play11:54

can just start up here at the top line

play11:57

and I'm going to go ahead and write a

play11:58

comment of what we're doing so what it

play12:00

starts with the pound sign and then our

play12:03

comment so I'll just say print a welcome

play12:05

message now if I go ahead and save that

play12:08

file and then run this again from my

play12:11

desktop then you can see that it didn't

play12:13

do anything to our script that still

play12:15

just prints out hello world so when we

play12:17

actually run our Python programs these

play12:19

comments are ignored it's only there for

play12:22

the developer and the programmer to

play12:24

actually see what's going on now you

play12:26

don't need anything fancy to run these

play12:28

Python scripts so if you wanted to then

play12:30

you could follow through all of my

play12:32

videos using this idle application like

play12:34

we have running here and then running

play12:37

the script from the command line but if

play12:39

you plan on doing a lot of Python

play12:41

programming then you'll likely want to

play12:43

upgrade to a better editor now you can

play12:45

use any kind of plain text text editor

play12:47

that you want you can even use some

play12:49

command line editors like vim or Emacs

play12:51

if you'd like some of the most popular

play12:54

editors and I have some of these pulled

play12:55

up and the browser here so one very

play12:58

popular editor is sublime text and

play13:01

that's at sublime text calm another

play13:03

popular text editor is atom and that's

play13:06

at atom IO and a very popular IDE is the

play13:11

JetBrains

play13:12

pycharm ide so sublime text and atom are

play13:15

text editors but with a lot of extra

play13:18

functionality built in and PyCharm is a

play13:21

full

play13:21

loan ide and that will give you a lot of

play13:24

extra features that you might not find

play13:26

and other editors like the ability to

play13:28

debug a running application and things

play13:30

like that now in this series of videos

play13:32

i'm going to be using sublime text now i

play13:35

have a full video on how i set up and

play13:37

customize my sublime text and i also

play13:39

have a full video on how to set up and

play13:42

customize atom so if you want to use

play13:44

either of those editors and i highly

play13:45

recommend watching those videos and i'll

play13:47

leave links to those in the description

play13:49

section below now one nice thing about

play13:51

using one of these editors is that you

play13:54

can run Python from directly within the

play13:56

editor so I have the same intro PI file

play13:59

that we just created pulled up here in

play14:01

sublime text and I can run this by going

play14:04

to tools and build or we could have just

play14:08

used that keyboard shortcut but you can

play14:10

see that if we run that and we get the

play14:11

same hello world output that we got when

play14:14

we ran at this file from our command

play14:16

line so to follow along with these

play14:18

videos you can use the idle application

play14:20

and use the command line to run those

play14:22

scripts or you can set up one of these

play14:24

other text editors the choice is

play14:26

completely up to you okay so I think

play14:28

that is going to do it for this video in

play14:29

this video we walk through how to

play14:31

install Python on both Mac and Windows

play14:33

we looked at how to run Python

play14:35

interactively within the terminal or

play14:37

command line and we also have saw how to

play14:39

create a Python file and execute that

play14:41

script so in the next video we'll start

play14:44

learning about variables and datatypes

play14:46

and specifically we're going to look at

play14:47

the string datatype and everything that

play14:49

we can do with those but if anyone has

play14:51

any questions about what we covered in

play14:52

this video then feel free to ask in the

play14:54

comment section below and I'll do my

play14:56

best to answer those now if you enjoy

play14:57

these tutorials and would like to

play14:59

support them there are several ways you

play15:00

can do that the easiest ways to simply

play15:02

like the video and give it a thumbs up

play15:03

and also it's a huge help to share these

play15:05

videos with anyone who you think would

play15:07

find them useful and if you have the

play15:08

means you can contribute through patreon

play15:10

and there's a link to that page in the

play15:11

description section below be sure to

play15:13

subscribe for future videos and thank

play15:15

you all for watching

play15:18

worried

play15:27

you

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Python TutorialProgramming BasicsIDE SetupScripting GuideMac InstallationWindows InstallationPython 3Interactive PromptBeginner CodingText Editor