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

Treehouse

(UPI) Chapter 9: Introduction to Python Data Structures: Lists, Tuples, and Dictionaries Course (How To)

via Treehouse

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it

About this Course

This course is part of our College Credit Program, designed to help you earn college credit while mastering valuable skills. If you're interested in pursuing college credit, click here to learn more.

An object is a single unit of data in a Python program. So far, this course has introduced three types of objects: strings, integers, and floats. This chapter introduces three types of containers: lists, tuples and dictionaries. A container is an object that can hold an arbitrary number of other objects. By the end of this chapter, you will be equipped to solve more complex problems using fewer variables.

Syllabus

List

Explore how to use lists in Python, including how to access, slice, and modify elements, work with nested lists, and check for membership.

Chevron 2 steps
  • instruction

    Lists

  • List Quiz

    5 questions

Tuples

Tuples are immutable sequences in Python, ideal for storing fixed data. Unlike lists, their elements can't be changed after creation, offering better performance and memory efficiency.

Chevron 2 steps
  • instruction

    Tuples

  • Tuples Quiz

    5 questions

Dictionaries

Dictionaries in Python store data as key-value pairs, where each value is accessed via its associated key. They are mutable, allowing you to change values, and offer efficient data retrieval. You can create dictionaries using key-value pairs, lists of tuples, or the zip function to pair multiple lists together.

Chevron 3 steps
  • instruction

    Dictionaries

  • instruction

    Summary

  • Dictionaries Quiz

    5 questions

Reviews

Start your review of (UPI) Chapter 9: Introduction to Python Data Structures: Lists, Tuples, and 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.