Menu
Courses / python basic / Introduction to Python

Introduction to Python

01 / 10 Part of python basic





 
 

    🐍 Topic 01 · Foundations
 


 
 


    Introduction to Python
 


 


    Understand what Python is, why it's the world's most popular language, and get your environment running in minutes.
 


 

    ⏱ ~30 min
    🟢 Beginner
    💻 No prior experience needed
 


 
 

   

     
     

What is Python?


   

   


      Python is a high-level, interpreted, general-purpose programming language created by Guido van Rossum and first released in 1991. Its design philosophy emphasises code readability — Python code often reads almost like plain English.
   


   


      Today Python powers web development, data science, artificial intelligence, automation, and scientific computing. Companies like Google, Netflix, Instagram, and NASA rely on it daily.
   



   
   


     

       
🔍

        Interpreted
       

Code runs line by line — no compilation step, faster debugging.


     


     

       
📖

        Readable
       

Indentation enforces clean structure. Python reads like English.


     


     

       
📦

        Rich Ecosystem
       

Over 400,000 packages on PyPI cover nearly every use case.


     


     

       
🌍

        Cross-Platform
       

Runs on Windows, macOS, and Linux with no code changes.


     


   

 


 
 

   

     
     

Installing Python


   

   


      Download the latest version from python.org (Python 3.12+ recommended). On Windows, tick "Add Python to PATH" during setup. On macOS/Linux Python may already be installed.
   



   
   

     

        Terminal – verify installation
     

     
# Check your Python version
python --version
# Expected: Python 3.12.x

# Check pip (package manager)
pip --version

   


   
   

      💡 Use a virtual environment
     

Create isolated project environments with python -m venv venv to keep dependencies tidy per project.


   

 


 
 

   

     
     

Your First Python Program


   

   


      By tradition, every programmer's first program prints "Hello, World!". In Python it's a single line — no boilerplate required.
   



   

     

        hello.py
     

     
# My first Python program
print("Hello, World!")

# Output: Hello, World!

   

   


      Run it from your terminal with python hello.py. That's it — you've just run your first Python program.
   


 


 
 

   

     
     

Recommended Tools


   

   

     

        🟦
       
VS Code — Free, lightweight editor with an excellent Python extension from Microsoft.

     

     

        🟨
       
PyCharm — Full-featured Python IDE, great for larger projects.

     

     

        📓
       
Jupyter Notebook — Ideal for data science and interactive exploration.

     

     

        ⌨️
       
Python REPL — Type python in terminal for instant interactive testing.