Course
>The full course outline
Six modules that move from your first expressions to programs you can structure, test and improve.
- 1
- 1Introduction to PythonExplain what Python does, where it is used, and run code in the editor. 7 min 10
- 2Your First Python ProgramUse print() to show text and values, including the sep and end arguments. 8 min 10
- 3Python Syntax and CommentsWrite correctly structured statements and add comments that explain your code. 10 min 10
- 4Variables and ConstantsStore, change, name, and swap values with variables and recognize constants by convention. 10 min 10
- 5Data Types and Type ConversionRecognize common data types and convert values explicitly when your program needs it. 11 min 10
5 lessons in this module - 2
Use operators and decisions to make your Python programs calculate, compare, and repeat work.
49 min 50 questions- 1Python OperatorsYou will use Python operators to calculate, compare values, and combine conditions. 10 min 10
- 2Input, Output and f-stringsYou will format output clearly and understand how text entered with input becomes a string. 9 min 10
- 3if...elif...else StatementsYou will choose which code runs by writing conditions with if, elif, and else. 10 min 10
- 4for Loops and range()You will repeat work over collections and number ranges with for loops. 10 min 10
- 5while Loops, break and continueYou will repeat code while a condition is true and control a loop with break and continue. 10 min 10
5 lessons in this module - 3
Organize many values with lists, tuples, strings, sets, dictionaries, and comprehensions.
60 min 50 questions- 1Python ListsCreate, read, change, sort, and safely copy lists of values. 12 min 10
- 2TuplesStore fixed values in tuples and unpack them into useful names. 10 min 10
- 3Working with StringsRead, combine, search, clean, and loop through text with strings. 12 min 10
- 4Sets and DictionariesUse sets for unique values and dictionaries for named values. 14 min 10
- 5ComprehensionsBuild lists, sets, and dictionaries quickly from iterable values. 12 min 10
5 lessons in this module - 4
Organize reusable code with functions, modules, and practical built-in tools.
57 min 50 questions- 1FunctionsDefine, call, and return values from functions so you can reuse clear pieces of code. 10 min 10
- 2Function ArgumentsPass values to functions safely with positional, keyword, default, variable, and named arguments. 12 min 10
- 3Scope and RecursionControl where names exist and solve repeatable problems with safe recursive functions. 12 min 10
- 4Lambda and Built-in FunctionsUse short lambda functions and Python built-ins to sort, transform, filter, and check data. 12 min 10
- 5Modules and PackagesImport useful code from modules, understand packages, and recognize a script's main entry point. 11 min 10
5 lessons in this module - 5
Handle problems safely, save data in files, and organize programs with classes.
51 min 50 questions- 1Errors and ExceptionsYou will handle errors safely and create your own exception type. 10 min 10
- 2File HandlingYou will write, read, append, and loop through text files safely. 10 min 10
- 3Classes and ObjectsYou will create classes, objects, attributes, methods, and useful string output. 11 min 10
- 4Inheritance and PolymorphismYou will reuse parent class code and call matching methods on different objects. 10 min 10
- 5Iterators, Generators and Next StepsYou will get values one at a time with iterators and generators, then plan your next practice. 10 min 10
5 lessons in this module - 6
- 1Project: Number Guessing GameBuild a number guessing game that gives feedback and counts each attempt. 18 min 10
- 2Project: Tip and Bill SplitterBuild a bill splitter with functions, rounded money, and an aligned results table. 17 min 10
- 3Project: Word Statistics ToolBuild a text tool that counts lines and words, finds a longest word, and ranks frequencies. 19 min 10
- 4Project: To-Do List ManagerBuild a small task manager with classes that add, complete, remove, and report tasks. 20 min 10
4 lessons in this module