Skip to playerSkip to main content
  • 2 days ago
Python is a popular high-level programming language known for its simplicity, readability, and versatility. In this guide, we will walk through the steps of installing Python, VS Code, and writing your first Python program.

Step 1: Install Python
To start, you'll need to download and install Python on your computer. Python is a free and open-source language, which means you can download it from the official website without any cost.

1. Go to the official website of Python, which is https://www.python.org/.
2. Click on the "Downloads" button on the top menu bar.
3. Choose the version of Python you want to download (we recommend version 3.x), and select the appropriate installer based on your operating system.
4. Once the download is complete, run the installer and follow the installation prompts.

Step 2: Install VS Code
Next, you'll need a code editor to write your Python programs. VS Code is a popular choice, and it is also free and open-source.

1. Go to the official website of VS Code, which is https://code.visualstudio.com/.
2. Click on the "Download for" button based on your operating system.
3. Once the download is complete, run the installer and follow the installation prompts.

Step 3: Write Your First Python Program
Now that you have Python and VS Code installed, it's time to write your first Python program.

1. Open VS Code.
2. Click on "File" in the top menu bar, and then select "New File" to create a new file.
3. In the new file, type the following code:

Print("Hello World ")

4. Save the file with a .py extension (e.g., myprogram.py).
5. Press F5 or select "Run" from the top menu bar, then "Run Without Debugging".
6. You should see "Hello, World!" printed in the output panel at the bottom of the screen.

Congratulations, you have written and executed your first Python program! You can now explore the vast range of possibilities with Python programming.

coding decoding
coding for beginners
reasoning
learn coding
medical coding
python
coding music
coding course
java
programming
laptop for coding
coding app
reasoning tricks
coding tutorial
coding interview
game coding
coding class
how to learn coding
computer coding
html coding
line coding in digital communication
arithmetic coding in digital image processing
c++ tutorial for beginners
dp coding school
ethereum coding
scratch coding tips
autogpt coding
c language tutorial for beginners
javascript tutorial for beginners
html tutorial for beginners
object-oriented programming
programmable logic controller
optimal binary search tree
binary search tree
sorting algorithm
national programme on technology enhanced learning
big think
y combinator
creative coding
bachelor of science in information technology
remote control
bulletin board system
remote keyless system
visual basic for applications
sorting hat technologies private limited
python pandas excel
pandas
read excel python
pandas to excel
python csv
python dataframe
python read excel file
python write excel
pandas read excel
pandas da
Transcript
00:00Hi guys, welcome to Python tutorial for beginners.
00:03So today we will going to discuss introduction to the Python, we will install Python, we will
00:08write our first program.
00:10So without any delay and without any delay, let's start our video.
00:15First we will going to discuss definition of Python.
00:19Python is a high level programming language that is easy to learn and widely used in various
00:24industries and fields such as data science, web development and artificial intelligence.
00:29So here is the definition of Python and other uses.
00:32Let's begin to install Python, setting up Python environment.
00:37Now come to your Chrome and type python.org and hit enter.
00:46When you come to the website, click on the download section and download the Python according to
00:52your operating system.
00:53I have already installed Python on my PC.
00:56So I don't need to download it again.
00:59So I will not do that.
01:01Now next we will going to install our visual studio code that is our text editor.
01:09Now let's take a new tab and type VS code download.
01:15Click on the first link.
01:18Yes.
01:18Now here is the three types of visual studio code that you can download Windows, Linux and
01:25Mac.
01:26I have a window so you have to just click on the user installer.
01:30Okay.
01:30If you have 32 bit then you will click on 32.
01:33If you have 64g then you can click on 64.
01:36After downloading both of these applications, we will now going to move further writing our
01:45first Python program.
01:47Open up your visual studio code.
01:50Okay.
01:55Now after open up your visual studio code.
02:01I have already created a folder on my desktop.
02:05That is named as a code where I have some random files that in order to Python.
02:10But what we gonna do this.
02:14Let me show you just drag the folder in a visual studio code.
02:18Now you can work on that code and code folder sorry.
02:26Now in the new file section create a new file main.py that's our first Python file.
02:37Okay so here we have created our first Python file.
02:41Now let me check out our Python is installed or not.
02:46Just open up your cmd and type python dash dash and version.
03:01If your version is actually invisible to you then it means that your Python has been installed
03:07on your PC or operating system.
03:10My Python has been installed so it is showing me the version of my Python.
03:17Now let's go into the folder where I have my Python file cd.
03:25Now I am actually in my folder where I have located my Python file.
03:32Now let's come to the VS code again and setting out print and in quotation marks hello world.
03:42This print statement actually print hello world on my console or terminal.
03:47If you don't understand what is print don't worry I will explain in the next upcoming videos.
03:52So just I have to execute that file Python name of that file main.py and hit the enter button.
04:01Now you can see guys the output has to be showing hello world.
04:06So you can also run your code in visual studio code you have to just click on the play button
04:12that is on top right side of your visual studio code as you can see I have run my visual
04:18studio
04:19with the python file.
04:23You have to just enter out the path where you download your python then that's all you need
04:30to run your python file in a visual studio code.
04:35So here is for all today.
04:36If you really like this video then do subscribe, like, share and never forget to press the bell
04:43icon to click on notifications of our new video.
Comments

Recommended