Python Data Structures

4.9
21,394 ratings
4,248 reviews

Course 2 of 5 in the Python for Everybody Specialization

This course will introduce the core data structures of the Python programming language. We will move past the basics of procedural programming and explore how we can use the Python built-in data structures such as lists, dictionaries, and tuples to perform increasingly complex data analysis. This course will cover Chapters 6-10 of the textbook “Python for Everybody”. This course covers Python 3.
Globe

100% online courses

Start instantly and learn at your own schedule.
Clock

Approx. 8 hours to complete

Suggested: 2-4 hours/week
Comment Dots

English

Subtitles: English, Chinese (Simplified)

What you will learn

  • Check
    Accomplish multi-step tasks like sorting or looping using tuples
  • Check
    Create programs that are able to read and write data from files
  • Check
    Explain the principles of data structures & how they are used
  • Check
    Store data as key/value pairs using Python dictionaires

Skills you will gain

Python ProgrammingData StructureProblem SolvingData Analysis
Globe

100% online courses

Start instantly and learn at your own schedule.
Clock

Approx. 8 hours to complete

Suggested: 2-4 hours/week
Comment Dots

English

Subtitles: English, Chinese (Simplified)

Syllabus - What you will learn from this course

1

Section
Clock
3 hours to complete

Chapter Six: Strings

In this class, we pick up where we left off in the previous class, starting in Chapter 6 of the textbook and covering Strings and moving into data structures. The second week of this class is dedicated to getting Python installed if you want to actually run the applications on your desktop or laptop. If you choose not to install Python, you can just skip to the third week and get a head start....
Reading
7 videos (Total 57 min), 6 readings, 2 quizzes
Video7 videos
6.1 - Strings15m
6.2 - Manipulating Strings17m
Worked Exercise: 6.58m
Bonus: Office Hours New York City2m
Bonus: Monash Museum of Computing History7m
Fun: The Textbook Authors Meet @PyCon3m
Reading6 readings
Reading: Welcome to Python Data Structures10m
Textbook10m
Welcome to Python 310m
Submitting Assignments10m
Notice for Auditing Learners: Assignment Submission10m
Audio Versions of All Lectures10m
Quiz1 practice exercises
Chapter 6 Quiz20m

2

Section
Clock
4 hours to complete

Unit: Installing and Using Python

In this module you will set things up so you can write Python programs. We do not require installation of Python for this class. You can write and test Python programs in the browser using the "Python Code Playground" in this lesson. Please read the "Using Python in this Class" material for details....
Reading
5 videos (Total 23 min), 2 readings, 2 quizzes
Video5 videos
Windows 10: Installing Python and Writing A Program8m
Windows: Taking Screen Shots2m
Macintosh: Using Python and Writing A Program4m
Macintosh: Taking Screen Shots4m
Reading2 readings
Important Reading: Using Python in this Class10m
Notes on Choice of Text Editor10m

3

Section
Clock
3 hours to complete

Chapter Seven: Files

Up to now, we have been working with data that is read from the user or data in constants. But real programs process much larger amounts of data by reading and writing files on the secondary storage on your computer. In this chapter we start to write our first programs that read, scan, and process real data. ...
Reading
5 videos (Total 46 min), 1 reading, 3 quizzes
Video5 videos
7.2 - Processing Files11m
Demonstration: Worked Exercise 7.19m
Bonus: Office Hours Barcelona1m
Bonus: Gordon Bell - Building Blocks of Computing15m
Reading1 readings
Where is the 7.2 worked exercise?10m
Quiz1 practice exercises
Chapter 7 Quiz20m

4

Section
Clock
3 hours to complete

Chapter Eight: Lists

As we want to solve more complex problems in Python, we need more powerful variables. Up to now we have been using simple variables to store numbers or strings where we have a single value in a variable. Starting with lists we will store many values in a single variable using an indexing scheme to store, organize, and retrieve different values from within a single variable. We call these multi-valued variables "collections" or "data structures"....
Reading
7 videos (Total 48 min), 3 quizzes
Video7 videos
8.2 - Manipulating Lists9m
8.3 - Lists and Strings7m
Fun: Python Lists in Paris0m
Worked Exercise: Lists11m
Bonus: Office Hours - Chicago0m
Bonus: Rasmus Lerdorf - Inventing the PHP Language7m
Quiz1 practice exercises
Chapter 8 Quiz20m

5

Section
Clock
3 hours to complete

Chapter Nine: Dictionaries

The Python dictionary is one of its most powerful data structures. Instead of representing values in a linear list, dictionaries store data as key / value pairs. Using key / value pairs gives us a simple in-memory "database" in a single Python variable....
Reading
7 videos (Total 77 min), 2 quizzes
Video7 videos
9.2 - Counting with Dictionaries11m
9.3 - Dictionaries and Files13m
Worked Exercise: Dictionaries24m
Bonus: Office Hours - Amsterdam3m
Bonus: Brendan Eich - Inventing Javascript11m
Fun: Dr. Chuck Goes Motocross Racing2m
Quiz1 practice exercises
Chapter 9 Quiz20m

6

Section
Clock
2 hours to complete

Chapter Ten: Tuples

Tuples are our third and final basic Python data structure. Tuples are a simple version of lists. We often use tuples in conjunction with dictionaries to accomplish multi-step tasks like sorting or looping through all of the data in a dictionary....
Reading
6 videos (Total 49 min), 2 quizzes
Video6 videos
Worked Exercise: Tuples and Sorting10m
Bonus: Office Hours - Puebla, Mexico1m
Bonus: John Resig - Inventing JQuery10m
Douglas Crockford: JavaScript Object Notation (JSON)7m
Fun: The Greatest Taco in the World2m
Quiz1 practice exercises
Chapter 10 Quiz20m

7

Section
Clock
17 minutes to complete

Graduation

To celebrate your making it to the halfway point in our Python for Everybody Specialization, we welcome you to attend our online graduation ceremony. It is not very long, and it features a Commencement speaker and very short commencement speech....
Reading
1 video (Total 7 min), 1 reading
Video1 videos
Reading1 readings
Please Rate this Course on Class-Central10m
4.9
Direction Signs

26%

started a new career after completing these courses
Briefcase

83%

got a tangible career benefit from this course

Top Reviews

Highlights
Helpful assignments
(254)
Excellent instructor
(503)
By PMOct 8th 2017

assignment 9.4 auto grader not working .\n\nLTI unable to launch.\n\nerror message: This tool should be launched from a learning system using LTI.\n\ni am using chrome on mac book air 2 and python 3.6

By DANov 10th 2017

I feel incredible that I knew almost nothing about programming just a month ago. Now I have done two of the courses of the specialization and I can actually understand other basic codes. Great course!

Instructor

Avatar

Charles Severance

Associate Professor

About University of Michigan

The mission of the University of Michigan is to serve the people of Michigan and the world through preeminence in creating, communicating, preserving and applying knowledge, art, and academic values, and in developing leaders and citizens who will challenge the present and enrich the future....

Frequently Asked Questions

  • Once you enroll for a Certificate, you’ll have access to all videos, quizzes, and programming assignments (if applicable). Peer review assignments can only be submitted and reviewed once your session has begun. If you choose to explore the course without purchasing, you may not be able to access certain assignments.

  • If you pay for this course, you will have access to all of the features and content you need to earn a Course Certificate. If you complete the course successfully, your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile. Note that the Course Certificate does not represent official academic credit from the partner institution offering the course.

  • Yes! Coursera provides financial aid to learners who would like to complete a course but cannot afford the course fee. To apply for aid, select "Learn more and apply" in the Financial Aid section below the "Enroll" button. You'll be prompted to complete a simple application; no other paperwork is required.

More questions? Visit the Learner Help Center