Course Content
Programming Foundations Topics:
-Introduction to Python -Installing Python & Setting Up IDE -Variables, Data Types & Operators -Input & Output -Conditional Statements (if, else, elif) -Loops (for, while) -Functions and Parameters -Error Handling (Try/Except)
0/9
Web Development with Python
Topics: Introduction to Flask Introduction to Django Building Your First Web App Routing and Templates Handling Forms Connecting to Databases (SQLite/MySQL) User Authentication Deploying Python Apps Online
Data Science & AI
Topics: Python for Data Analysis Numpy & Pandas Basics Data Cleaning Techniques Data Visualization (Matplotlib, Seaborn) Introduction to Machine Learning (Scikit-Learn) Supervised vs Unsupervised Learning Linear Regression, KNN, and Decision Trees Basic Neural Networks
Automation & Scripting
Topics: Automating Files and Folders Sending Emails with Python Web Scraping (BeautifulSoup, Selenium) Working with Excel & CSV files Scheduling Tasks with Python Scripts PDF and Image Manipulation
Game Development
Topics: Intro to Pygame Creating a Game Window Sprite Movement & Collision Score Tracking Sound and Music in Games Game Projects: Pong, Snake, Flappy Bird
Career & Interview Prep
Topics: Common Python Coding Problems String & List Manipulation Challenges Recursion & Algorithm Practice Big-O Notation Basics Cracking Python Interview Questions Building a Python Portfolio
Advanced Python
Topics: Object-Oriented Programming (OOP) Working with APIs (REST APIs, JSON) Unit Testing with unittest File Handling (Text, JSON, Pickle) Decorators, Generators, and Lambda Functions Multithreading & Asynchronous Programming
Python Full Course

📝 Overview

In this lesson, you’ll learn how to store and manipulate data in Python using variables, understand different data types, and perform operations using arithmetic and logical operators.


🎯 What You’ll Learn

  • What variables are and how to use them

  • The different data types in Python

  • How to perform basic math and logic with operators


📦 1. What is a Variable?

A variable is a container used to store data. You create a variable by assigning a value to a name using the = sign.

python
name = "Alex"
age = 20

Here:

  • name holds a string "Alex"

  • age holds an integer 20


🧠 2. Python Data Types

Data Type Example Description
int 5, 100 Whole numbers
float 3.14, 1.0 Numbers with decimals
str "Hello" Text or string
bool True, False Boolean (yes/no)
python
price = 19.99 # float
product = "Shirt" # str
in_stock = True # bool

🧮 3. Operators in Python

➕ Arithmetic Operators

Operator Meaning Example
+ Addition 5 + 38
- Subtraction 9 - 27
* Multiplication 3 * 412
/ Division 10 / 25.0
** Exponent 2 ** 38

🧮 Example:

python
a = 10
b = 5
sum = a + b
print("The sum is:", sum)

🤔 Comparison Operators

Operator Meaning
== Equal to
!= Not equal to
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal

⚙️ Logical Operators

Operator Meaning
and True if both are True
or True if at least one is True
not Reverses the result
python
x = 5
print(x > 3 and x < 10) # True

👨‍💻 Mini Practice

python
# Practice: Simple calculator
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum:", a + b)
print("Product:", a * b)

🧠 Quick Recap

  • Variables store data you want to use

  • Python has data types like int, float, str, bool

  • Operators let you perform math and comparisons


Next Lesson Preview

→ Input & Output in Python