Trying Python for the First Time | Learn Basics, Do Math, Run Scripts (Python Tutorial #3)
Jun 20, 2025
New to Python? Don’t worry — I’ve got you covered! In this video, we’re trying Python for the very first time — step by step. We’ll start by opening the Python interpreter, do some basic math, and then write and run our first Python script. 🐍💻 ✨ Whether you're just starting your coding journey or refreshing your basics, this video will help you feel confident about using Python from day one. 🔍 What You’ll Learn in This Video: How to open the Python interpreter Simple math operations using Python What is a Python script? How to write and run your first .py file Here is the previous video link: Python installation guide: https://youtu.be/WcKT4rvctwc
View Video Transcript
0:00
hey guys welcome back to this channel if
0:02
you're new then welcome to this channel
0:04
well I'm back with one more interesting
0:06
video and this time we are working on
0:10
the steps that we have to follow after
0:13
installing the Python so I'm assuming
0:15
that you guys have already installed
0:17
Python if you didn't then I'm going to
0:20
link that up in the description you can
0:22
just go there and you can tap it you can
0:24
install it and you can come back here
0:26
and you can follow the process so I'm
0:29
assuming that you have already installed
0:32
Python and after that you'll be thinking
0:35
like you're staring at your computer
0:37
screen and you feel like how do I
0:42
actually use this
0:44
so that's what we are going to do in
0:47
this today's video we open Python for
0:49
the first time we will try some basic
0:51
math like addition and multiplication
0:54
and even create your own Python script
0:56
for the first time that you can run like
0:58
a real program no technical stuff no
1:03
stress just simple step-by-step stuff
1:07
that anyone can follow even if you have
1:10
never coded before okay let's start with
1:13
something called the Python interpreter
1:16
so this is basically a Python way of
1:18
saying it's like type something and I'll
1:20
respond instantly think of it like a
1:23
calculator or a chat with Python itself
1:26
you're chatting with the Python
1:29
so here is how you have to open it you
1:32
just go to your command prompt so what I
1:34
do is I'll open here in this particular
1:37
path so you just have to type cmd
1:42
and you open uh type a command called
1:45
core space dot
1:48
and you just have to open
1:52
and now you see the VS code because I
1:54
use VS code you can also try a very
1:57
basic text editor or even you can try
1:59
PyCharm
2:04
so you can do here
2:08
just type python here you can do right
2:11
here or you can do the in the command
2:14
prompt itself you can just do python
2:19
so you see three angle brackets like
2:23
this right so that means python is ready
2:27
to go and you're officially talking to
2:31
the interpreter now let's have some fun
2:34
and try basic math you don't need to
2:36
memorize anything just type and see what
2:39
happens you can type something like 5 +
2:43
5 which is addition and it is giving the
2:46
addition and you can try now subtraction
2:49
10 - 4 oh my bad i'm sorry about that 10
2:53
- 4 you see subtraction now let's try
2:57
multiplication
3:01
yep it's working and you can try
3:03
division
3:08
and yes Python understands the brackets
3:12
too you can mix things like you can make
3:16
it you know as crazy as possible 5 + 5
3:22
into
3:24
5 + 5
3:28
and it will understand
3:34
and you can try something like 5 by
3:39
5
3:41
plus in the brackets 6 + 6
3:48
okay
3:50
and now you can try something like
3:54
8
3:56
into 2 by
4:00
9 + 5 - 3
4:07
okay
4:09
so it follows a regular math rules like
4:12
brackets first and then multiplication
4:14
or division and then addition or
4:17
subtraction it's pretty simple like if
4:20
you see here it's 5 + 5 into 5 + 5 so
4:24
what it does is first it will add 5 + 5
4:28
which is 10 and then 10 into 5
4:33
then it will be 50 and then + 5 so that
4:36
is how it follows the math rules so it
4:39
will give the most attention the most
4:42
priority to the brackets and then it
4:45
will follow the rest of the addition
4:46
then it follows the multiplication and
4:49
then it will follow the addition
4:52
similarly here first it follows the 6 +
4:55
6 then it will follow the division
5:00
so it will be 6 + 6 12 and 5 by 5 will
5:03
be 1 something so that's how it will add
5:08
12 + 1.0 13.0 something like that
5:16
okay typing stuff one line at a time is
5:20
fine but what if you want to write five
5:24
to 10 lines and run it all at once
5:30
you got me like here you're typing one
5:33
by one and once you type something it is
5:36
giving you the output and second time
5:38
you're typing it is giving you the
5:39
output but what if I want to run all at
5:42
once i just want to type all at once and
5:45
I need output all at once
5:49
so that is where Python scripts come in
5:52
so a Python script is actually just a
5:56
text file that has Python code inside it
6:00
and when you run it Python reads
6:03
everything and executes it from top to
6:07
bottom from line to line it will execute
6:10
everything and that's how it will give
6:13
output all at once
6:17
okay let's try it for example I'm using
6:20
VS Code as the Python interpreter now
6:22
you can try the you know notepad and or
6:25
even PyCharm or whatever the cool
6:27
interface that you like but I'm going
6:29
with this one
6:31
so you can just type something like
6:34
friend
6:38
hello from Python python is saying hello
6:42
to you you are writing the program okay
6:46
and you just have to print for example
6:50
5 + 5
6:53
and then you can now try multiplication
6:56
8
6:57
into 3
7:03
and you can just print
7:08
you are doing
7:16
great
7:20
okay
7:22
now
7:24
whenever you're writing the program you
7:26
have to save it with py extension like
7:31
for example this is the first program py
7:34
extension because
7:36
this tells your computer that it is a
7:40
python code like it's your like saying
7:42
the computer like hey it's a python code
7:45
you have to run this python script
7:48
something like that because computer
7:50
have multiple files have a text file
7:53
with the extension txt it have video
7:55
format files you know uh music video
7:59
files it has multiple files and in this
8:02
multiple files how it will identify your
8:05
program file so that is why if that's a
8:08
Python file you have to save it as py if
8:11
that's a C file you have to save it as C
8:15
if that's a C++ CP or if that's a Java
8:20
Java something like that so that
8:22
computer can remember oh okay yeah so
8:25
this is a Python file this is a Java
8:27
file something like that
8:30
so now it's time to run your code and by
8:34
any chance can you guys guess the output
8:38
like can you actually see what's going
8:40
on here what could be the output just
8:43
comment down just pause at this
8:45
particular ular point i want you to do
8:46
it right now just pause and just write
8:50
whatever you feel
8:53
and we can discuss in the comments
8:57
sorry my throat is really bad today
8:59
please bear me guys
9:09
so if you want to run this file in
9:12
general not in the VS code what you can
9:14
do is
9:17
open command prompt
9:19
i'm closing this
9:23
and you can try cmd here and open
9:26
command at this particular path
9:32
and you can just do python
9:37
first program
9:44
py so make sure that you're giving the
9:48
correct file so it's first program and
9:50
it's a Python file and just hit enter
9:55
and you see the output right
9:58
okay I I did something wrong here but
10:01
that's fine it's not about that so we
10:03
are right we are looking at the output
10:06
right or if you want I can make it right
10:08
just away
10:13
you can save it and you can do it once
10:16
in
10:20
Python
10:22
first
10:23
program
10:26
py
10:27
let's just hit enter and now you see the
10:30
output right your entire script runs and
10:34
prints everything you wrote you ask the
10:37
computer to print hello from Python and
10:40
you did addition and you did
10:41
multiplication here and you also ask the
10:44
computer to print you're doing grit so
10:47
that is what it did so and just like
10:50
that you have actually opened the
10:52
interpreter you have done real math and
10:55
created your first Python file and you
10:58
have run your very first program and
11:00
that's huge and I'm really proud of you
11:02
if you're still here and you did this
11:05
and if you're new to programming don't
11:08
worry about making mistakes because it
11:10
is actually a part of the learning
11:13
and that's how we learn in the next
11:15
video we'll explore how to take the
11:17
input from the users
11:20
and store data using variables and build
11:23
your own mini calculator and if this
11:26
video helped you drop a comment below
11:28
and tell me how your first Python
11:30
session went and don't forget to hit
11:33
that like button because it really helps
11:35
the channel and if you're serious about
11:37
learning Python from scratch step by
11:39
step make sure you subscribe and turn on
11:41
notifications so you never miss an
11:43
episode so see you in the next one until
11:46
then happy coding