Module 2: Variables & Data Types
Understand how Python stores and works with different kinds of data
Learning Objectives
By the end of this module, you will be able to:
- Create variables and assign values using the
=operator - Follow Python naming rules and choose meaningful variable names
- Perform arithmetic with integers and floats, including integer division and modulo
- Create and manipulate strings using quotes, escape characters, and basic operations
- Understand Boolean values (
TrueandFalse) - Convert between data types using
int(),float(),str(), andbool() - Use
type()to check the type of any value
Lessons
1
Variables and Assignment
Learn how to create variables, follow naming rules, reassign values, and choose meaningful names that make your code readable.
~30 minutes2
Numbers: Integers and Floats
Explore Python's number types, arithmetic operators, order of operations, integer division, and the modulo operator.
~35 minutes3
Strings Basics
Discover how to create and work with text in Python using strings, escape characters, and useful string operations like len().
~35 minutes4
Booleans and Type Conversion
Understand True/False values, check data types with type(), and convert between types using int(), str(), float(), and bool().
~30 minutes