1. Introduction to Python
Level: BeginnerDuration: 22m
What Is Python?
Python is a beginner-friendly programming language used to build websites, apps, AI tools, automation scripts, and data projects. It's loved because of its clear and readable syntax.
Why Learn Python?
- Easy to learn and beginner-friendly
- Used in web development, data science, and AI
- Massive community support and libraries
- Great language for real-world projects
What You Need Before Starting
Before we write any Python code, you need to install Python on your computer. You only do this once, and you’re ready to code forever.
How to Install Python
- Go to https://python.org and download the latest version of Python.
- Run the installer on your computer.
- IMPORTANT: Check the box that says "Add Python to PATH" before clicking Install.
- Complete the installation process and restart your terminal or command prompt.
Verify Installation
bash
python --version
# or
python3 --versionIf you see a version number like Python 3.x.x, it means Python is installed correctly.
What Can You Build With Python?
| Category | Examples |
|---|---|
| Web Development | Django, Flask |
| Data Science | Pandas, NumPy |
| Machine Learning | TensorFlow, Scikit-Learn |
| Automation | Scripts, bots |
| Game Development | Pygame |
Your First Python Program
python
print("Hello, Python!")Save this in a file called hello.py and run it in your terminal with python hello.py. If you see Hello, Python! you just wrote your first program. 🎉
Mini Project Step
Inside hello.py, update your program to print your name and one reason you're learning Python. Example: print("Hi, I'm Sarah and I'm learning Python for data science!")
💡 Python balances simplicity with power — perfect for beginners and professionals alike.