HomePYTHONIntroduction to Python – What is Python? Installation (Windows/Linux/Mac)

Introduction to Python – What is Python? Installation (Windows/Linux/Mac)

Introduction to Python

🐍 Introduction to Python

βœ… What is Python?

Python is a high-level, interpreted, general-purpose programming language known for its:

  • Simple syntax (easy to read/write)
  • Large community support
  • Powerful libraries for Data Science, Web Development, Automation, AI/ML, etc.

πŸ”₯ Why Learn Python?

  • Used by companies like Google, Facebook, Netflix.
  • Great for web development, data science, automation, AI, machine learning, and more.
  • Beginner-friendly and versatile.

πŸ’» How to Install Python

🌐 Step 1: Check if Python is Already Installed

Open terminal (Linux/Mac) or command prompt (Windows):

python --version
# OR
python3 --version

If Python is installed, you’ll see a version like Python 3.11.2. If not, follow below steps:


πŸͺŸ Windows Installation

  1. Go to the official website:
    πŸ‘‰ https://www.python.org/downloads/
  2. Click on “Download Python 3.x.x”.
  3. Run the installer:
    • βœ… Check the box: β€œAdd Python to PATH”
    • Then click Install Now
  4. Verify installation:
    Open Command Prompt and type: bashCopyEditpython --version

🐧 Linux Installation

Ubuntu/Debian:

sudo apt update
sudo apt install python3
python3 --version

Fedora:

sudo dnf install python3
python3 --version

🍏 Mac Installation

Option 1: Use Homebrew (recommended)

brew install python
python3 --version

Option 2: Direct download from https://www.python.org/downloads/mac-osx/


βœ… Test Your Installation

Open terminal/command prompt and type:

python3

You should see the Python interactive shell:

>>> print("Hello, Python!")
Hello, Python!

Share:Β 

No comments yet! You be the first to comment.

Leave a Reply

Your email address will not be published. Required fields are marked *