Python Data Structures
Course outline and certification by University of Michigan
Certification offered by
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.
Key Points About This Course
Duration: 3 Days
Public Class Fee: RM 3,500.00
Virtual Class Fee: RM 2,975.00
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.
What You Will Learn
- Accomplish multi-step tasks like sorting or looping using tuples
- Create programs that are able to read and write data from files
- Store data as key/value pairs using Python dictionaries
Skills You Will Gain
- Python Syntax And Semantics
- Data Structure
- Python Programming
Part 1: Strings
In this class, starting in Chapter 6 of the textbook and covering Strings and moving into data structures. The second part of this class is dedicated to getting Python installed if you want to actually run the applications on your desktop or laptop.
Part 2: 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.
- Demonstration: Using the Python Playground
- Windows 10: Installing Python and Writing A Program
- Windows: Taking Screen Shots
- Macintosh: Using Python and Writing A Program
- Macintosh: Taking Screen Shots
Part 3: 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.
Part 4: 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”.
Part 5: 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.
Part 6: 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.