Python_Tutorial #Class - 01 | Introduction |Learn python

Python Tutorial


Are you a beginner to Python and looking forward to getting started with Python?
This tutorial will teach you and get to know about Python, how it works and how programs are executed.


You can read about Python here and it's history We'll directly jump into the tutorial.

Let's dive in.

In this chapter, We'll cover the following topics,
 1. Installing Python
 2. Verifying the installation
 3. First Python Program

1. Installing Python

Before we can run Python on our machine, our machines(Computer /Laptop) must be capable of understanding the high-level language. We'll learn more about this in our upcoming tutorial when we'll learn more about how python works internally.
For now, we'll install Python. You can download the latest version of Python from here.

Once you have downloaded the setup, follow the steps to install it, if you have already installed it jump to the next step here.
Before you hit Install, make sure to tick the Add Python to PATH




2. Verifying the installation

After installing Python, we need to check that everything went well. To do this,
  • Open Comand Prompt.
  • Type "python" or "Python" (without quotes)
  • You should see something like this, without any error

If you are seeing the version of Python installed, you have done everything right, let's keep moving forward. If you are facing any issue please follow the installation procedure properly. If still, the problem exists you can tell in the comment section below, I'll definitely answer your questions.


3. First Python Program

Your very first Python program will be a hello world program. In this program, we will print anything on the terminal.

For now, we'll be using Python's inbuilt IDE known as IDLE. To launch IDLE, Press ⊞ Win
and type IDLE, and launch the application.


Now,  File - > New File (or CTRL + N)
We have opened our IDE and are ready to write our first Python program.

Save the file to the desired location and goto Run - > Run Module (or F5) and see the output on Python Shell.


Here we have used Python's in-built function print( ), to display text on our screen. We'll learn more about functions in upcoming chapters.

That's all for today. Our next chapter will be on the Python command line, Syntax, and comments in Python.


See also Online Compiler for all programming languages 


Drop your queries in the comment box or mail me at [email protected]

Post a Comment

0 Comments