Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 927 Bytes

File metadata and controls

31 lines (25 loc) · 927 Bytes

Module 023: Dictionaries: Basics

Phase: 3. Data Structures
Estimated Time: 2 hours
Milestone: No

Overview

Learn about dictionaries, Python's key-value mapping data structure. Master creating, accessing, and iterating over dictionaries.

Topics

  • Creating dicts with {}
  • Key-value pairs
  • Accessing values with [] and .get()
  • Modifying and adding entries
  • Dict iteration: keys(), values(), items()
  • len() and the in operator
  • Dict membership testing

Learning Objectives

  • Create dictionaries using curly braces and key-value syntax
  • Access values safely using square brackets and .get()
  • Add and modify entries in a dictionary
  • Iterate over keys, values, and items
  • Check for key existence with in
  • Determine dictionary length with len()

Prerequisites

  • Modules 000–022

Next Module

Module 024: Dictionaries: Advanced