Materials
Beginner
5 Chapters · 58 Lessons
Automate Repetitive Tasks with Loops
Review of loops and functions
My Courses
Chapter 1
For Loop: Structure and Usage
Lessons
How to Perform Iterations Based on Conditions in Python
Using `for` loops with Lists
Nested Lists and Nested Loops
Multiple-choice quiz
Expanding Sequence Elements with the Spread Operator
Utilizing for Loops with Dictionaries
How to Create a Range of Numbers in Python
Coding Quiz - for Loop
Multiple-choice quiz
Fill-in-the-blank quiz
Chapter 2
While Loops and List Comprehensions
Lessons
How to Execute a Loop While a Given Condition is True
Controlling Logic Flow Inside Loops
Using While Loops with Lists
Multiple-choice quiz
Calculating Minimum, Maximum, and Sum
How to Reverse the Order of Objects
Iterating Over Elements of an Iterable
Iterating Over Key-Value Pairs with the items() Function
Simplifying Lists with List Comprehensions
Using the join() Function to Concatenate Strings
Differences Between Iterables and Iterators
Coding Quiz - Determine Odd/Even
Multiple-choice quiz
Fill-in-the-blank quiz
Chapter 3
Functions: Code Blocks for Specific Tasks
Lessons
Creating Reusable Code Blocks with Functions
The Difference Between Parameters and Arguments
Handling TypeError for Function Parameters
Multiple-choice quiz
Understanding and Using Variable-Length Arguments
How to Assign Default Values to Function Parameters
Using Keyword Arguments
Various Function Return Methods
Coding Quiz - Output Formatting
Multiple-choice quiz
Fill-in-the-blank quiz
Chapter 4
Recursive and Lambda Functions
Lessons
Functions That Call Themselves - Recursive Functions
Comparing Loop and Recursive Functions
Enhancing Recursive Function Efficiency with Memoization
Handling UnboundLocalError in Recursion
Multiple-choice quiz
Using Functions and Tuples Together
Functions within Functions - Callback Functions
Processing Sequences with filter() and map() Functions
Multiple-choice quiz
Creating Concise Anonymous Functions with Lambda
Calculating Fibonacci Sequence Using Lambda Functions
Coding Quiz - Extract Elements from List
Multiple-choice quiz
Fill-in-the-blank quiz
Chapter 5
Functions, Modules, and Packages
Lessons
Understanding Files and Basic Input/Output
How to Read from a File
How to Write to a File
Writing Safe Code with Exception Handling
Using Modules to Write Cleaner, Reusable Code
How to Create Your Own Python Module
What Are Packages and How Do You Use Them?
Multiple Choice Quiz
Coding Quiz - Sum of Even Numbers