Chapter 1: Python & Setup – Getting Started
1. What is Python?
Python is a simple, powerful, and popular programming language used for:
- Web development (Django, Flask)
- Data science & AI (Pandas, TensorFlow)
- Automation, scripting, and more.
Why Python?
- ✅ Easy to read & write (like English)
- ✅ Huge community support
- ✅ Works on Windows, Mac, Linux
2. Installing Python
Step 1: Download Python
Visit python.org → Download the latest version (e.g., Python 3.12).
Step 2: Run the Installer
- Windows: Check
"Add Python to PATH" (important!) → Install.
- Mac/Linux: Usually pre-installed (check by typing
python3 --version in Terminal).
Step 3: Verify Installation
Open Command Prompt (Windows) / Terminal (Mac/Linux) and type:
python --version # Should show Python 3.x
Exercise 1:
- Install Python on your computer.
- Verify the installation by running
python --version.
5. Next Steps
✔ Python is installed!
✔ You ran your first program!
🚀 Next Chapter: Python Basics (Variables, Data Types).