Getting Started
  • Course Introduction
  • Your First Python Program
  • The Command Line
  • The Python Shell
  • Your Second Python Program
Python Basics
  • Variables
  • Strings
  • Numbers
  • Variables, strings, and numbers
  • Variables (E)
  • Get Variable Value (E)
  • Programming Tip
  • Math Operators
  • Math Operators (E)
  • Builtin Functions
  • Simple Sum (E)
  • Lists
  • Lists (E)
  • List Indexing and Slicing
  • List Slicing Examples
  • Ranges
  • Indexing (E)
  • Slicing (E)
  • More on Indexing (E)
  • More on Slicing (E)
  • List Indexing (E)
  • Indexing and Slicing
  • Append to List (E)
  • Remove from List (E)
  • Append from List to List (E)
  • Concatenate List Items (E)
  • Tuples
  • Dictionaries
  • Create Dictionary (E)
  • Sequences, collections, strings and iterations
  • More Operations with Dictionaries
  • User Input
  • Conditionals
  • Conditionals with Multiple Conditions
  • Conditionals (Q)
  • Custom Functions
  • Custom Function Example
  • Create Function (E)
  • Exponential Function (E)
  • Custom Functions: Return Vs. Print
  • Custom Functions with Conditionals
  • Calculate Length (E)
  • Solution (E)
  • Custom Functions with Multiple Parameters
  • Sum up Function (E)
  • Function Output (E)
  • Custom Functions with Default Parameters
  • Function with Default Parameters (E)
  • Weather Function (E)
  • Solution (E)
  • Functions and if-else (E)
  • Solution (E)
  • Functions and if-elif-else (E)
  • Solution (E)
  • Opening Files in Python
  • Working with File Paths
  • Processing File Content
  • Reading Files (E)
  • Solution (E)
  • For Loops
  • For Loops (E)
  • Solution (E)
  • For Loops (Q)
  • For Loop with Conditional Block (E)
  • Solution (E)
  • File Content Length (E)
  • Solution (E)
  • Functions, Conditionals, and Loops (E)
  • Solution (E)
  • Writing to a Text File
  • Appending to a Text File
  • Reading and Appending to a Text File
  • Writing Multiple Lines in a Text File (E)
  • Tip: Writing Multiple Lines in a Text File (E)
  • Solution (E)
Beyond the Basics
  • Section Introduction
  • Setting Up
  • While Loop
  • While Loop with Password Checker
  • String Formatting
  • Modules, Libraries, and Packages
  • Installing Python Libraries
  • Dates and Times
  • Datetime Formatting Codes
  • Looping Over Multiple Sequences
  • The "with" Context Manager
  • Files, Loops, Functions, and Conditionals (E)
  • Solution (E)
  • Merging Text Files (E)
  • Tip: Merging Text Files (E)
  • Solution (E)
  • What are Objects in Python?