Syllabus

  1. 01Hello, PythonWrite and run your first programs: print text, leave comments, store values in variables, read error messages and do math.9 lessons
    1. 01Your first program
    2. 02Comments
    3. 03Strings
    4. 04Variables
    5. 05Reading error messages
    6. 06Numbers
    7. 07Powers, remainders and floor division
    8. 08Updating variables
    9. 09Hello, Python quiz
  2. 02Text, types and inputJoin strings, convert between numbers and text, fill in messages with f-strings and read input, then put it together in a budget calculator.6 lessons
    1. 01Joining text together
    2. 02Converting between types
    3. 03Filling in text with f-strings
    4. 04Reading input
    5. 05Project: road trip budget
    6. 06Text, types and input quiz
  3. 03Making decisionsCompare values, branch with if, elif and else, combine conditions with and, or and not, and pick between options with match.7 lessons
    1. 01Comparisons and booleans
    2. 02if statements
    3. 03else and elif
    4. 04Combining conditions with and, or, not
    5. 05Choosing with match
    6. 06Project: cinema ticket pricing
    7. 07Making decisions quiz
  4. 04ListsStore many values in one list: create lists, read items by index, add and remove items, slice, sort and summarize, nest lists, and meet tuples and zip().8 lessons
    1. 01Creating lists
    2. 02Getting items by position
    3. 03Adding, changing and removing items
    4. 04Slicing lists
    5. 05Counting, sorting and summarizing
    6. 06Lists inside lists
    7. 07Tuples and zip()
    8. 08Lists quiz
  5. 05LoopsRepeat work with for and while loops, count with range(), steer loops with break and continue, nest loops, and build lists with comprehensions.8 lessons
    1. 01for loops
    2. 02Looping with range()
    3. 03while loops
    4. 04break and continue
    5. 05Loops inside loops
    6. 06List comprehensions
    7. 07Project: weekly step report
    8. 08Loops quiz
  6. 06FunctionsPackage code into reusable functions: parameters and arguments, return values, defaults and keyword arguments, scope, and passing functions around with lambda, map() and filter().8 lessons
    1. 01Defining and calling functions
    2. 02Parameters and arguments
    3. 03Returning values
    4. 04Default and keyword arguments
    5. 05Where variables live: scope
    6. 06Lambdas, map() and filter()
    7. 07Project: travel unit converter
    8. 08Functions quiz
  7. 07Working with stringsTreat text as a sequence: index and slice it, escape special characters, loop over it, change case, split and join, clean and search, and format output precisely.9 lessons
    1. 01Strings are sequences
    2. 02Immutable strings and escape characters
    3. 03Looping over text and the in operator
    4. 04String methods: changing case
    5. 05Splitting and joining
    6. 06Cleaning and searching text
    7. 07Formatting output
    8. 08Project: playlist cleanup
    9. 09Working with strings quiz
  8. 08ModulesUse Python's standard library: import modules, pick names with from and as, generate random values, work with dates and times, and organize your own code into modules.6 lessons
    1. 01Importing modules
    2. 02from imports and aliases
    3. 03Random numbers
    4. 04Dates and times
    5. 05Your own modules and packages
    6. 06Modules quiz
  9. 09DictionariesStore and look up data by key: create dictionaries, read values safely, add and remove pairs, loop over them, and build them from other data.7 lessons
    1. 01Creating dictionaries
    2. 02Looking up values safely
    3. 03Adding, changing and removing pairs
    4. 04Looping over dictionaries
    5. 05Building dictionaries from data
    6. 06Project: word frequency counter
    7. 07Dictionaries quiz
  10. 10FilesRead and write text files, process them line by line, and work with the two most common data formats: CSV and JSON.8 lessons
    1. 01Reading a file
    2. 02Reading line by line
    3. 03Writing and appending
    4. 04Reading CSV files
    5. 05Writing CSV files
    6. 06JSON files
    7. 07Project: monthly expense report
    8. 08Files quiz
  11. 11Classes and objectsCreate your own types: define classes, give them methods and constructors, tell class and instance attributes apart, control how objects print, and combine classes in a project.8 lessons
    1. 01Types and objects
    2. 02Defining a class
    3. 03Methods and self
    4. 04Constructors and instance attributes
    5. 05Class attributes vs instance attributes
    6. 06Printing objects: __repr__ and __str__
    7. 07Project: bike rental shop
    8. 08Classes and objects quiz