Python Tutorial in Hindi | Python Tutorial in Hindi for Beginners

Python has grown to be one of the most widely used programming languages today. It is a high-level, object oriented language that is preferred by most programmers due to its simplicity and versatility. If you wish to learn Python, then what better way to do so than with the help of a Python Tutorial in Hindi. Through this tutorial, we will understand what Python is used for, how to install Python, the top Python IDEs, variables, and more. Before we move further in the Python Programming in Hindi, let us understand where Python is used.

Where is Python used? 

Did you know that when you are browsing through Google and are indulging in your day-to-day activities such as scrolling through Instagram, watching videos on YouTube or even listening to music on Spotify, each of these platforms make use of Python as their programming language? It has paved its way into several areas across different applications and platforms. Let us take a look at where Python is being used.

  1. Web Development

Python has a large selection of Python Libraries that helps in making web development a simple task. Due to its clean and simple syntax, writing a Python code is not time-consuming. This allows quick prototyping, thus, accelerating the ROI on commercial applications. There are several built-in testing frameworks that allow developers to come up with bug-free codes. These well-supported frameworks also help in quick implementation with no compromise on performance of the codes and solutions.

  1. Internet of Things 

Physical objects that connect an embedded system to the internet are known as Internet of Things. IoT plays an important role in projects involving big data, machine learning, wireless data networks, cyber security, and data analytics. It also works with real-time analytics. Python ticks off all the check-boxes as it can be used in the applications of all the aforementioned. Python is scalable, expandable, and embeddable. Thus, making the programming language system-independent and allowing multiple single board computers irrespective of the OS or architecture. Python is also brilliant in managing and handling/organising complex decisions. If a system is data-heavy, then Python can be crucial.

  1. Machine Learning 

With the advent of machine learning, there is a whole new approach to problem solving. Python is at the forefront of ML because it is an extensive open source library, it has an efficient syntax, there is easy integration with other programming languages, and it has a low entry point and is scalable to different operating systems and architectures.

In the next step in this Python Tutorial in Hindi, we will take a look at how to install Python.

Installation Process

If you are using Windows, you must go to and go to the “Download Anaconda” option. Here, you will download the latest version for Python 3.6. After this, the process is quite simple and straightforward. You will have Python installed within minutes. Next, you will power up and IDE and start the coding process. Once Python is installed, it is possible to have multiple IDEs or editors in your installation.

Sublime or Notepad++ can be used for text editors. If you already know how you use IDEs, you can use Jupyter, but there are several other options such as Wingware, Komodo, Pycharm, and Spyder too.

You also have the option to install several packages in Python, such as, Numpy, Pandas, Seaborn, Scipy, Xlrb, Openpyxl, Matplotlib, and IO.

Top IDEs in Python

  • Spyder
  • PyCharm
  • Thonny
  • Atom
  • Jupyter
  • Komodo
  • Wingware

Let us now move on to the next stop in this Python Tutorial in Hindi, and take a look at what we mean by variables and see an example for the same.


In Python, variables are containers that can hold data. If a value is assigned to a variable, it can change at a later time. The first assignment creates a variable and there is no explicit declaration.

numOfBoxes = 8

ownerName = “Aditi”

print(“numOfBoxes= “, numOfBoxes)

print(“ownerName= “, ownerName)

In this example, we can see two variables with string and numeric data that are created. A print statement is used to display these variables. Variables follow the below mentioned conventions.

The name should begin with a letter or underscore character

They are case-sensitive

Alpha-number and underscore is allowed in the rest of the name

# valid names

numOfBoxes = 8

_num_of_boxes = 11           # this is a different variable than numOfBoxes

_NUM_OF_BOXES = 16   # a different variable as names are case sensitive

ownerName = “Aditi”

ownerName2 = “Karan” # different, valid variable

# invalid names

2ownerName = “David”    # cannot start with number.

                                          # Only letter or underscore in the beginning

owner-name = “Krish”       # no hypen

owner name = “Ram”      # no space allowed

# only alpha numeric and underscore

We have listed a few possible variable names and several invalid names as well. It is possible to give a variable multiple values and also the same value to multiple variables. Here is an example for the same.

# different values assigned to many variables

length, width, depth = 6, 7, 8




# same value assigned to many variables

length = width = depth = 6





A comment is used to describe a program’s logic, and the purpose of the modules being used. If someone apart from the programmer is looking at the code, these comments are helpful for them to understand the code. If you are testing the python program, you can use comments to disable the portion of code that needs to be excluded from being executed. A comment in Python starts with # symbol. And it may start after the code in the same line or on it’s own.

Here is an example for the same. 

# comment in separate line

y = y * 6

y = y * 6   # multiply by 6; comment in same line

This brings us to the end of this blog on Python Tutorial in Hindi. We hope that you found this helpful and were able to gain some knowledge from the same. In this tutorial, we have covered the basics about the installation process, what we mean by variables and comments, and the top IDEs in Python. Hope this helps! Happy Learning.


Joyce is Managing Editor overseeing the coverage of Senonches.

Related Articles

Back to top button