INTRODUCTION FOR PYTHON
What is Python?
Python is a high-level, interpreted, general-purpose programming language known for its:
Readability and simplicity (easy syntax like plain English)
Extensive libraries for tasks like data analysis, machine learning, web development,
automation, and more
Platform independence (write once, run anywhere)
Open-source and free to use
Features of Python:
Dynamically typed: No need to declare data types explicitly
Interpreted language: Executes line-by-line, making it easier to debug
Object-oriented: Supports classes and objects
Vast ecosystem: Libraries like NumPy, Pandas, scikit-learn, TensorFlow, Django,
Flask, etc.
Cross-platform: Runs on Windows, macOS, and Linux
How to Install Python (Step-by-step)
1. Download Python
Go to the official website: [Link]
Click on the latest version for your OS (e.g., Python 3.12.x for
Windows/macOS/Linux)
2. Install Python on Windows
1. Run the installer
2. Important: Check the box that says "Add Python to PATH"
3. Click Install Now
4. Wait for installation to finish
3. Verify Installation
Open Command Prompt and type:
python --version
You should see something like:
Python 3.12.x
How to Run Python Code
Interactive Mode: Open terminal or command prompt → type python → you can
now run Python commands line-by-line
Script Mode: Save your code in a file like [Link] and run it:
python [Link]
Recommended Tools
Tool Purpose
IDLE Built-in Python editor
VS Code Lightweight IDE with extensions
Jupyter Ideal for data science tasks
PyCharm Powerful IDE for Python projects
Command for this program :
Pandas : pip install pandas