Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Introducing Dictionaries Course (How To)

via Treehouse

Overview

Another useful Python data structure is the dictionary. Learn how to write one and use one in your day-to-day Python code.

What you'll learn

  • **kwargs
  • Writing dictionaries
  • Key:value pairs

Syllabus

Introducing Dictionaries

Discover an unfamiliar Python data structure: the dictionary.

Chevron 6 steps
  • What is a dictionary?

    1:23

  • Dictionary Syntax and Key:Value Pairs

    1:25

  • Accessing Keys and Values

    4:07

  • Creating a Dictionary

    2 objectives

  • Update and Mutate Dictionaries

    3:37

  • Recap of Introducing Dictionaries

    4 questions

Iterating and Packing with Dictionaries

Learn how to iterate over a Python dictionary and the difference between *args and **kwargs.

Chevron 5 steps
  • Iterate over Dictionaries

    4:14

  • Iterating Over Dictionaries

    1 objective

  • Packing with Dictionaries

    4:23

  • instruction

    Unpacking with Dictionaries

  • Recap of Iterating and Packing with Dictionaries

    4 questions

Reviews

Start your review of Introducing Dictionaries Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.