Download and Install Python (3.10.6) and Pycharm | Python Tutorials for Beginners #lec3

Jenny's Lectures CS IT
29 Aug 202213:58

Summary

TLDRThis video tutorial guides viewers through installing Python 3.10.6, the latest version at the time of recording, and the IDE PyCharm Community Edition. It covers downloading Python from python.org, customizing the installation to include pip, and verifying the installation via command prompt. The tutorial also demonstrates downloading and setting up PyCharm, creating a new project, and writing a simple 'Hello World' program to illustrate Python's simplicity and ease of use compared to other programming languages.

Takeaways

  • 🌟 The video is part of a series on learning Python, focusing on installation and writing a 'Hello World' program.
  • 🔍 It instructs viewers to download the latest version of Python (3.10.6 at the time of the video) from the official Python website.
  • 📥 The installation process for Python involves selecting 'Customize installation' to include features like Pip and adding Python to the system path.
  • 🛠️ Pip is essential for installing Python packages and is included in the Python installation by default.
  • 💻 The video demonstrates how to verify Python installation by using the command prompt to check the version and test basic Python commands.
  • 🖥️ PyCharm, an Integrated Development Environment (IDE), is recommended for writing Python programs, with a preference for the free Community Edition.
  • 🔄 After installing PyCharm, the video guides users through setting up a new project and configuring the Python interpreter.
  • 📝 The script explains that Python files have a '.py' extension and that PyCharm can create a welcome script by default.
  • 🔑 The video shows how to write a simple Python program to print 'Hello World', highlighting Python's simplicity compared to other languages.
  • 🔄 It also mentions the flexibility of using single or double quotes for strings in Python.
  • 🚀 The video concludes with an invitation for viewers to follow along in the next video for more Python programming lessons.

Q & A

  • What is the main focus of the video script?

    -The video script focuses on guiding viewers through the process of installing Python, an IDE (PyCharm), and writing a simple 'Hello World' program in Python.

  • Why is Python considered an interpreted language?

    -Python is considered an interpreted language because the Python interpreter executes the code line by line, without the need for prior compilation, allowing for immediate execution and testing of code snippets.

  • What is the latest version of Python mentioned in the script?

    -The latest version of Python mentioned in the script is 3.10.6.

  • What does 'pip' stand for and what is its purpose?

    -PIP stands for 'Python Package Installer'. Its purpose is to install and manage Python packages, which are collections of modules and libraries that extend the functionality of Python.

  • Why is it recommended to add Python to the system path during installation?

    -Adding Python to the system path allows users to run Python commands directly from the command prompt without having to specify the full path to the Python executable each time.

  • What is the purpose of an IDE like PyCharm?

    -An IDE like PyCharm provides a comprehensive environment for writing, testing, and debugging code. It includes features such as syntax highlighting, autocompletion, and a built-in compiler and debugger.

  • What is the difference between the PyCharm Community and Professional editions?

    -The PyCharm Community edition is free and open-source, while the Professional edition offers additional features and is available for a free 30-day trial, after which it requires a paid subscription.

  • How can you check if Python has been successfully installed on your system?

    -You can check if Python has been successfully installed by opening the command prompt, typing 'python --version', and verifying that the correct version number is displayed.

  • What is the default file extension for Python scripts?

    -The default file extension for Python scripts is '.py'.

  • How can you verify that pip has been successfully installed along with Python?

    -You can verify that pip has been successfully installed by typing 'pip' in the command prompt and seeing if it displays the expected output, indicating that it is ready to use.

  • What is the significance of the 'Hello World' program in the context of learning a new programming language?

    -The 'Hello World' program is a simple and traditional first program that new programmers write when learning a new language. It serves as a basic test to ensure that the programming environment is set up correctly and that the programmer can execute a simple command.

Outlines

00:00

💻 Installing Python and PyCharm IDE

This paragraph details the process of installing Python and an Integrated Development Environment (IDE) for Python programming. It begins with downloading Python 3.10.6 from python.org, highlighting the importance of choosing the latest version. The installation process includes selecting the 'Customize installation' option to include pip, which is necessary for installing Python packages. The video script emphasizes adding Python to the system path for easy command-line access. Following Python installation, the script moves on to installing PyCharm Community Edition, a popular IDE for Python development, from the JetBrains website. The installation steps include selecting the appropriate settings and launching the IDE for the first time.

05:01

🔍 Verifying Python Installation and Setting Up PyCharm

The second paragraph focuses on verifying the successful installation of Python and setting up the PyCharm IDE. It instructs viewers to open the command prompt and type 'python --version' to check the installed Python version. The script also demonstrates how to use the Python interpreter as a calculator for simple calculations. Furthermore, it explains how to verify pip installation by typing 'pip' in the command prompt. The paragraph then guides the user through the initial setup of PyCharm, including creating a new project, selecting the correct Python interpreter, and configuring the project settings. It also touches on the concept of virtual environments in PyCharm, although it is not required for the basic setup.

10:01

📝 Writing a 'Hello World' Program in Python

The final paragraph of the script introduces the viewer to writing a simple 'Hello World' program in Python using the PyCharm IDE. It explains that Python is a high-level language that simplifies the process of coding compared to languages like C or C++. The script demonstrates how to create a new Python file (.py), write the 'print("Hello World")' statement, and execute it to display the output on the screen. The paragraph emphasizes the ease of writing and running Python code, showcasing Python's simplicity and the PyCharm IDE's user-friendly interface. It concludes with a teaser for the next video in the series, which will delve into more advanced Python programming concepts such as variables and data types.

Mindmap

Keywords

💡Python

Python is a high-level, interpreted programming language known for its readability and concise syntax. In the video, Python is the central subject, with the focus on its installation and use for writing programs. The script mentions downloading Python 3.10.6, indicating the specific version being discussed.

💡IDE (Integrated Development Environment)

An IDE is a software application that provides comprehensive facilities to computer programmers for software development. In the context of the video, PyCharm is introduced as the IDE for writing Python programs, highlighting its features like syntax highlighting, autocompletion, and error detection.

💡Interpreter

An interpreter is a computer program that directly executes instructions written in a programming language, without requiring them previously to have been compiled into a machine language program. The video explains the installation of Python's base interpreter, which allows for the execution of Python code line by line.

💡pip

pip is the package installer for Python. It is used to install and manage additional libraries and dependencies required for Python projects. The script mentions adding pip to the installation to facilitate the future installation of Python packages.

💡Download

The term 'download' refers to the process of transferring data from a remote system, typically a server, to a local system. In the script, the process of downloading Python and PyCharm is described, which is a prerequisite for their installation and use.

💡Installation

Installation in the context of the video refers to the process of making software or programs ready for use on a computer. Detailed steps for installing Python and PyCharm are provided, including choosing custom installation options and adding Python to the system path.

💡Path

In computing, the 'path' refers to the location of a file or directory in a file system. The video script explains the importance of adding Python to the system path, which allows the user to run Python commands directly from the command prompt without specifying the full path to the Python executable.

💡Command Prompt

The command prompt, also known as cmd, is a command-line interface where users can input commands for execution by the operating system. The script demonstrates using the command prompt to verify the installation of Python by checking the version and using the interpreter for simple calculations.

💡Syntax Highlighting

Syntax highlighting is a feature of text editors and IDEs that displays text, specifically source code, in different colors and fonts depending on the category of terms. The video mentions this feature of PyCharm, which helps programmers to easily distinguish different types of syntax in the code.

💡Hello World

The 'Hello World' program is a simple program that outputs the message 'Hello, World!' to the screen. It is often used as a first step in learning a new programming language. The script describes writing a 'Hello World' program in Python as a simple one-liner using the print function.

💡Virtual Environment

A virtual environment is an isolated working copy of a Python environment. It allows developers to work on different projects with their own dependencies without interfering with each other. Although mentioned in the script, the use of a virtual environment is not required for the initial setup described in the video.

Highlights

Introduction to installing Python and an IDE for programming in Python.

Explanation of Python as an interpreted language and the process of installing the base interpreter.

Step-by-step guide to downloading Python from the official website, specifically version 3.10.6.

Instructions on how to install Python, including choosing installation options and adding Python to the system path.

Overview of what pip is and its role in installing Python packages.

Demonstration of checking Python installation success through the command prompt.

Using Python as a calculator for simple arithmetic operations in the command line.

Verification of pip installation and its functionality through the command prompt.

Introduction to PyCharm as an IDE for Python development, including its features and benefits.

Guidance on downloading and installing PyCharm Community Edition from JetBrains.

Explanation of setting up a new project in PyCharm and configuring the Python interpreter.

Discussion on the creation of a 'main.py' file and the significance of the '.py' file extension in Python.

Simple demonstration of writing and running a 'Hello, World!' program in Python using PyCharm.

Clarification on the simplicity of Python syntax compared to other programming languages for basic output.

Note on the flexibility of using single or double quotes for strings in Python.

Announcement of the next steps in the Python programming course, covering variables and data types.

Invitation for viewers to ask for help in the comments section if they face difficulties with installation.

Transcripts

play00:00

so in the series of learning python

play00:02

programming language in previous video

play00:04

we have talked about history of python

play00:06

language

play00:07

now

play00:08

in this video we will install actually

play00:11

python as well as an ide for writing

play00:14

programs in python language and then we

play00:16

write a simple program just to print

play00:18

hello world that's we usually do

play00:20

whenever we you learn any programming

play00:22

language first program you write is

play00:24

print hello world so this these three

play00:26

things we'll do in this video right

play00:28

python is a interpreted language so that

play00:31

is you can say basically we will you

play00:33

know install the base interpreter for

play00:35

python

play00:36

right so now let's see how to

play00:39

install these things one by one step by

play00:42

step

play00:43

okay

play00:45

first we will search like

play00:48

just

play00:50

write down download python

play00:52

okay

play00:54

and

play00:55

better

play00:56

to open the website

play00:59

the website of this python dot or

play01:01

python.org

play01:03

right

play01:04

and here in the download section you

play01:06

will find download python 3.10.6

play01:10

the latest version is 3.10.6 so we are

play01:12

going to download this version for

play01:13

windows

play01:15

okay so just click on download and

play01:18

that's it

play01:20

it will take only few seconds and see

play01:22

it's been downloaded let's just click on

play01:26

this

play01:27

and now

play01:28

how to install this you can click on

play01:30

install now two options are there or

play01:32

customize installation in customize you

play01:34

can choose your location and some

play01:35

features

play01:36

right by default this would be your

play01:38

location if you click on install now

play01:42

okay it will include ideally pip

play01:44

documentation and all we'll see what is

play01:46

ideally what is pip basically to install

play01:48

python packages and all you'll see one

play01:50

by one these videos but for now just add

play01:52

this uh

play01:54

just check this also this textbook

play01:57

checkbox add python

play01:59

3.10 to path means

play02:01

automatically it will be added to path

play02:03

and directly from cmd command prompt you

play02:04

can

play02:05

run the center better you can run the

play02:07

commands on python you don't need to add

play02:09

any path right so i'll do customized

play02:11

installation okay see in this what are

play02:14

the features documentation pip it will

play02:16

install you know pip which will download

play02:19

and install python packages

play02:21

later we will install some packages also

play02:23

in python so using pip we can do that

play02:25

thing

play02:26

okay

play02:27

now

play02:28

let's let's click on

play02:30

next and install for all users right

play02:34

and you just keep everything as it is

play02:38

this is the location install location c

play02:40

program files and python 3.10 okay and

play02:43

click on install that's it and then

play02:46

yes

play02:48

now it has been started and it will take

play02:51

few seconds to install this uh language

play02:54

to this this interpreter for this

play02:56

language here we are downloading the

play02:58

base interpreter for python

play03:00

right

play03:01

now after that we will install ide

play03:04

pycharm basically id is one integrated

play03:06

development environment

play03:08

which is basically an application or you

play03:10

can see it's a software to build

play03:11

applications it is having text editor

play03:14

also code editor

play03:16

okay with there you can write down code

play03:18

uh with having some syntax like syntax

play03:20

highlighting some extra features it is

play03:22

having syntax highlighting

play03:23

autocompletion if there is an there is

play03:25

any error then underline it will show

play03:28

red underline

play03:29

under that line in which

play03:31

you are having error same as we have

play03:33

installed and we have worked right now

play03:35

also we are currently working visual

play03:37

studio code uh when we were we run c

play03:40

plus plus program so for this that id is

play03:42

an id also having compiler debugger

play03:45

right many things in simple and in one

play03:48

software we are having many things so

play03:49

that is why we use id

play03:51

rather than writing our programs in

play03:53

notepad we generally prefer ids many ids

play03:56

are there so here we use pycharm so

play03:59

after this we will install pycharm okay

play04:02

now let's just uh click on this end

play04:07

download

play04:08

pi

play04:09

cha

play04:11

okay

play04:13

it is by jetbrains

play04:17

so you see the first website only

play04:18

jetbrains.com

play04:20

right

play04:21

it is by jetbrain so just

play04:23

click on that thing and you will find

play04:25

two version here

play04:27

professional as well as community but

play04:29

better to download community version

play04:31

because it would be paid it would be

play04:33

free for it it is professional is a free

play04:35

30 days trial only

play04:37

so we will

play04:38

download community version okay

play04:41

it has been started

play04:43

now as you can see

play04:45

our setup is also going on and we have

play04:49

so now python 3.10.6 64-bit setup is

play04:53

successful we will close this

play04:55

see as you can see also there are

play04:57

various releases previous release 3.10

play05:00

3.9 3.8 whatever version you want to

play05:03

download you can download

play05:05

right

play05:06

but better to download the latest

play05:07

version that would be fine

play05:09

so as you can see these are the versions

play05:11

you can download other than this version

play05:13

3.9.6 you can download any other version

play05:15

also it's up to you

play05:17

right

play05:18

but better to download three point x

play05:19

version only know two point x because

play05:21

they have

play05:22

added the support for two point x

play05:24

version right now how to check that we

play05:26

have successfully downloaded this python

play05:29

so just

play05:30

you can just uh click on this you can uh

play05:33

open your command prompt cmd type cmd

play05:36

and this is your command prompt right

play05:39

now here i will

play05:41

write

play05:42

python

play05:45

version

play05:46

hyphen hyphen version so see it is

play05:49

showing me the version 3.10.6 yes it has

play05:51

successfully

play05:53

downloaded and installed sorry why not

play05:55

download it install this python this

play05:57

interpreter for us

play05:59

right

play06:00

so if you

play06:02

enter

play06:03

write python and enter then our this

play06:06

interpreter for us has been started here

play06:09

you can

play06:10

you can use this thing for calculate as

play06:12

a calculator or you can write down your

play06:13

commands here

play06:15

you can do programming also here line by

play06:17

line

play06:18

so see if i write 3 plus 2 it will show

play06:21

me 5

play06:23

so this can also be used as a calculator

play06:25

so line by line because interpreter

play06:28

would do what integrate line by line not

play06:29

the complete code so only one line you

play06:32

will write and it will show you the

play06:33

result of that line so simply we will

play06:35

exit

play06:36

from here simply type exit and

play06:39

press enter

play06:40

and one more thing we have also included

play06:42

we have also installed pip that was used

play06:44

to install some packages and all if you

play06:46

want to check that thing also you can

play06:48

just

play06:49

write down pip here and just

play06:52

enter so see it will show you something

play06:55

like this the result

play06:57

after

play06:58

uh clicking

play06:59

after writing pip and clicking just

play07:01

enter

play07:02

so this would be the case so means uh

play07:04

tip has also been installed successfully

play07:06

you don't need to do anything loud now

play07:08

they just close it

play07:10

now we will install our python the ide

play07:12

so let's click on this the community

play07:15

version that we have downloaded already

play07:17

and it will show

play07:19

this screen just click on yes

play07:22

and next

play07:24

and this is the destination folder for

play07:27

our

play07:28

this

play07:29

installation then click on next

play07:31

simply click on next or you can write

play07:35

down

play07:36

create if you want to create desktop

play07:38

shortcut you can just click on this

play07:43

open folder as project this also you can

play07:45

click if you want to add bin folder to

play07:48

the path

play07:50

update path variable

play07:52

so i don't want to include this thing

play07:55

you just click on next now

play07:59

right and simply click on install

play08:02

that's it it will take some time

play08:05

right

play08:08

so it's been done now you can just click

play08:11

on the run python community edition and

play08:13

just click on finish

play08:15

so now it will launch and

play08:18

just click on don't import settings and

play08:22

okay right

play08:23

now it will launch your python community

play08:25

edition 2022

play08:27

now what you need to do obviously the

play08:29

first time so we will create a new

play08:31

project so click on new project

play08:34

okay

play08:35

now see this type of thing would be

play08:36

there on your screen now what you have

play08:38

to do

play08:40

you can just this is your location see

play08:42

my location is this thing and python

play08:44

project so if you want to change the

play08:46

name of your project you can just

play08:49

i'm

play08:51

writing first

play08:53

project

play08:54

that's it now

play08:56

new environment it is showing that

play08:58

virtual environment but we don't need to

play09:00

this we don't need to do this thing

play09:03

we need to do what

play09:05

previously configured

play09:07

interpreter

play09:09

for this it was

play09:11

so now it is showing no interpreter you

play09:13

have to add interpreter because we have

play09:15

already installed python interpreter

play09:17

right so add add local interpreter and

play09:22

i have which interpreter it's python

play09:25

3.xc location c user and base

play09:28

interpreter is program files python 3.10

play09:31

3010 and python dot exe right this is my

play09:34

interpreter okay

play09:37

now

play09:38

just click on this so if you are you

play09:40

know if in your laptop it is not showing

play09:43

anything so you can just click on these

play09:45

three dots and you can search

play09:48

you can search in which folder you have

play09:50

installed in c folder in user or python

play09:52

in which folder you have installed that

play09:54

python previously we have installed that

play09:56

python you just go to that folder click

play09:59

go to that folder and click on python

play10:00

dot exe and then select it

play10:02

right

play10:04

in my uh pc i have already this thing

play10:06

python.exe so just click on ok

play10:10

so it is creating

play10:11

uh that environment

play10:13

so see the interpreter is python 3.x

play10:16

sorry 3.10 okay now see create a main

play10:19

dot py welcome script it will create a

play10:22

main dot py the extension for python uh

play10:25

program says dot p i just say for c we

play10:27

have dot c for c plus plus we have dot

play10:29

cpp so same for python we have a dot py

play10:31

so it will create

play10:32

a welcome script for s for us right if

play10:34

you check this if you uncheck this it

play10:36

will not create anything but i'm going

play10:37

to check this

play10:38

okay now let's just create so it is

play10:41

loading our first project c main dot p

play10:44

y so it is a sample python script

play10:48

okay

play10:49

you can say this

play10:51

if you want to check out this thing you

play10:53

can check out otherwise

play10:55

no it's okay you can

play10:57

what you can do

play10:59

you can just

play11:00

remove all these things and we can do

play11:03

our simple like we have now installed

play11:06

our ide so if you want to print hello

play11:08

world in python how you will print it's

play11:11

very simple no need to write down any

play11:13

header file main function and all

play11:15

one line you need to write down okay now

play11:18

if you want to write down that thing in

play11:20

main dot py you can do that thing or

play11:22

otherwise in first project

play11:24

you can

play11:25

you can create you can create a new file

play11:28

right click on first project new the

play11:30

name of our project is first project new

play11:32

and then

play11:33

file i'm creating new file that is

play11:37

first

play11:38

dot

play11:39

py

play11:41

here i'll write my code simply you need

play11:44

to write

play11:45

print

play11:47

and

play11:51

hello world

play11:53

that's it no semicolon nothing else

play11:55

nothing else so you can simply

play11:58

run this

play11:59

here we have a

play12:01

you know this kind of thing

play12:03

hi pycharm so it is

play12:08

okay it is actually running this main

play12:10

dot p y this file main dot p y right we

play12:13

no need to run this file we we need to

play12:15

write we need to run our first dot py

play12:18

this file so now let's uh close that

play12:21

file select this first dot py and sorry

play12:25

here here not main

play12:27

you have to select your current file

play12:30

okay

play12:31

note main here if there is this kind of

play12:34

thing you just select

play12:35

current file and run this

play12:38

now current file is first dot py so it

play12:41

is printing hello world on my screen

play12:43

simple program so i think

play12:46

with this only you can

play12:48

identify how much

play12:50

simpler

play12:52

is to code in this programming language

play12:54

python programming language then c and c

play12:57

plus plus and java and all

play12:59

to print a simple line hello world you

play13:01

just need to write down print and that

play13:03

thing

play13:04

because it is a string or the string you

play13:06

can write down in single quote also here

play13:07

no double quote but actually i am from

play13:09

that c and c plus background so

play13:11

i

play13:12

put string in double quotes and a single

play13:14

character in single code but in python

play13:16

you can write down rather than these

play13:18

double quotes single quotes as well

play13:22

uh

play13:22

single quotes

play13:24

okay let's run this current file and it

play13:26

will print hello world both are same

play13:28

single code or double quote it's up to

play13:30

you

play13:31

so i guess this is clear to you now from

play13:33

the next video we are going to start you

play13:35

know our actual python programming

play13:37

course we will learn about variables

play13:39

how to use those data types string and

play13:42

all

play13:42

you'll see these kind of things so now

play13:44

in the next video till then bye bye take

play13:46

care and if you are finding any

play13:47

difficulty in downloading and installing

play13:49

these kind of things you can let me know

play13:50

in comment section

play13:52

okay

play13:53

so let's see the next video now till

play13:55

then bye take

Rate This

5.0 / 5 (0 votes)

Related Tags
Python InstallationIDE SetupHello WorldProgramming TutorialPyCharm GuidePython 3.10Beginner CodingSoftware DevelopmentScripting LanguageDeveloper Tools