Python Foundations
14 lessons. Start programming with values, variables, conditions, functions and collections. Build small programs with guided practice and two projects.
Complete beginners learning their first programming language.
Before you start: No prior programming experience required.
14 lessons · 37 exercises and projects. 2 free lessons and 5 free exercises. No account needed for free previews.
What you will learn
- Use values, conditions, loops and functions.
- Choose lists, dictionaries, sets and tuples for small tasks.
- Build a study-session planner and quiz-results analyzer.
Lessons are included in Course access. Exercises and projects are included in Practice Pack access. Complete Bundle includes both. Compare access options.
← All courses and learning paths · Suggested next course: Debugging and Testing Code — Python
Course lessons
01Running code, values, and outputDistinguish code, a value, printed output, and a returned answer.Free preview02Variables and basic calculationsStore intermediate values and calculate a result using arithmetic.Free preview03Strings and simple formattingCombine text and insert values into a readable message.Course04Comparisons and Boolean logicCombine comparisons to express a true-or-false rule.Course05ConditionsChoose one result from mutually exclusive cases.Course06Functions, parameters, and return valuesDefine a reusable function with explicit inputs and an output.Course07Lists and indexingRead ordered values and handle an empty list safely.Course08For loops and accumulationVisit each item once and build a total or count.Course09While loops and terminationRepeat an operation while making progress toward a stopping condition.Course10DictionariesLook up named values and build a count by key.Course11Sets, tuples, and choosing collectionsChoose a collection based on order, uniqueness, and mutability.Course12Missing values and input validationDistinguish an absent value from a valid zero or empty string.Course13Reading errors and writing simple assertionsUse error messages and small checks to locate a defect.Course14Combining functions into small programsSplit a task into predictable transformations and test the whole result.Course