Introduction to Python and Installation

Python is one of the most widely used programming languages, known for its simplicity and readability. It is extensively used in web development, data science, artificial intelligence, and automation. This tutorial will guide you through the basics of Python and how to install it on your system.

Why Learn Python?

Python is a great choice for both beginners and professionals due to its:

  • Simple and Readable Syntax – Python code is easy to read and write.
  • Large Community Support – A vast community of Python developers is available to help.
  • Versatile Applications – Used in web development, AI, machine learning, and automation.
  • Free and Open-Source – Python is available for free and runs on multiple platforms.

Python Usage in India

Python is widely used in different sectors across India:

  • E-commerce – Companies like Flipkart and Amazon India use Python for backend systems.
  • Banking and Finance – Banks such as SBI, HDFC, and ICICI use Python for fraud detection and risk analysis.
  • Education – Platforms like Dynamic Duniya provide educational content and tutorials using Python.

How to Install Python on Your System

Step 1: Download Python

  1. Go to the official Python website: https://www.python.org/downloads/
  2. Click on Download Python 3.x.x (latest version).

Step 2: Install Python on Windows

  1. Open the downloaded .exe file.
  2. Select Add Python to PATH (important for running Python from the command line).
  3. Click Install Now and wait for the installation to finish.

Step 3: Verify Installation

After installation, open Command Prompt (cmd) and type:

python --version

If the installation was successful, you will see an output like:

Python 3.11.4

Running Your First Python Program

Now that Python is installed, let’s write our first program.

Method 1: Using Python IDLE (Default Editor)

  1. Open IDLE (Python 3.x.x) from the Start Menu.
  2. Type the following code and press Enter:
print("Welcome to Dynamic Duniya - Your Free Learning Hub!")

       3. Output:

Welcome to Dynamic Duniya - Your Free Learning Hub!

Method 2: Using a Python File (.py)

  1. Open Notepad or any text editor.
  2. Write the following code:
# Python program to display a greeting message
print("Hello! Welcome to Dynamic Duniya!")

      3. Save the file as hello.py (select All Files while saving).

     4. Open Command Prompt, navigate to the file location, and run:

python hello.py

     5. Output

Hello! Welcome to Dynamic Duniya!

Next Steps

Now that Python is installed and running, you can move on to learning about variables, data types, and control structures. In the next tutorial, we will explore Python Variables and Data Types in detail.

Stay connected with Dynamic Duniya for more Python tutorials and learning resources.