Unlock the power of Python with confidence. Whether you're stepping into programming for the first time or returning for a refresher, Intro to Python Programming offers a practical, student-friendly guide to learning one of today’s most popular and versatile languages. Designed for college learners, this textbook blends clear explanations with hands-on practice using tools like PyCharm and Visual Studio Code. You’ll start with the basics—writing your first “Hello, World!”—and build up to real-world scripting, data processing, and automation skills through engaging labs, walkthroughs, and interactive examples.
Each of the eight modules is designed to guide you from beginner to confident Python programmer, with a focus on writing clean, logical code and understanding how Python solves real problems. You'll explore topics like input and output, control structures, functions, data handling, and scripting—supported by detailed walkthroughs, practice labs, and hands-on demos. Whether you're learning in class or at your own pace, this book provides the structure and support you need to build a strong foundation in Python and apply it to real-world tasks.
Example Curriculum
- Variables in Python: Storing and Using Data
- Variable Naming Conventions in Python
- Data Types: The Foundation of Every Value
- Video: Variables, Data Types, and Naming Conventions (3:11)
- Data Type Conversion in Python
- Strings in Python: Working with Text
- String Formatting in Python: Inserting Data into Text
- Video - Strings and String Formatting (4:05)
- Escape Characters in Python: Inserting Special Symbols in Strings
- Demo – Variables and Data Types (4:23)
- Introduction to Functions
- Defining and Calling a Function
- Parameters and Arguments
- Return Values
- Returning Multiple Values from a Function in Python
- Local Variables and Scope
- Combining Functions with Loops and Conditionals
- Best Practices for Writing Functions
- Using Built-in Python Functions
- Demo - RPG Battle Simulator (5:31)
- What Are Data Structures?
- Lists in Python
- Demo - Lists - Course Registration (3:11)
- Tuples in Python
- Demo - Tuples - Campus Location Lookup (3:39)
- Indexing and Slicing
- Dictionaries in Python
- Demo - Dictionaries - Inventory System (4:11)
- Sets in Python
- Demo - Sets - Class Enrollment (4:12)
- Choosing the Right Data Structure
- Lab - Course Planner Using Lists
- Lab - Travel Itinerary Tracker Using Tuples
- Lab - Campus Bookstore Inventory Using Dictionaries
- Lab - Club Membership Analyzer Using Sets
- Lab - Student Notes Manager (Text File I/O)
- Lab - Game Inventory Reader (CSV File)
- Lab - Character Profiles Loader (JSON File)
- Lab - User Config Settings Viewer (XML File)
- Lab - Character Tracker - OOP
- Lab - Employee Manager – Working with a List of Objects
- Lab - NumPy Power-Ups – Working with Game Score Arrays
- Lab - Fitness Tracker Analytics – Combining NumPy and Pandas
- Lab - Streaming Showdown – Visualizing Viewer Data with Matplotlib
- Lab - Department Dashboard – Visualizing CSV Data with Pandas and Matplotlib
- Introduction to Python Tools and Libraries for System Tasks
- Real-World Automation Using os and sys Modules
- File System Scripting and Command Execution with shutil and subprocess
- Using psutil for Process and System Monitoring
- Demo - System Health Check (4:50)
- Task Scheduling with time, datetime, and schedule
- Automating User and Process Management
- Demo - Scheduled Process Watchdog (macOS & Windows) (4:52)
- Lab – Exception Handling Calculator
- Lab – Exception Handling and Assertions Calculator
- Lab - Creating and Using Custom Exceptions: Character Level Validator
- Lab – Logging in Python: Login Event Tracker
- Lab - Logging File Operations - Error Tracking with Context
- Lab - Challenge – Secure Student Enrollment System
- What is Machine Learning?
- Supervised vs. Unsupervised Learning
- Introduction to scikit-learn
- Splitting Data into Training and Testing Sets
- Linear Regression and K-Nearest Neighbors (KNN)
- Demo - Predicting Annual Income with Linear Regression (5:41)
- Demo - Predicting Newsletter Signup with K-Nearest Neighbors (KNN) (5:47)