Structured data in Python is accomplished by applying various collection types in Python. This lesson provides an overview.
- [Instructor] Python provides a number of collection types…useful for creating structured data.…The list type is a basic sequence.…It's created using a pair of square brackets…around a list of values separated by commas.…The list is mutable,…which means that you may add, delete, and change values.…A tuple is like a list, but it's immutable.…You cannot change it once it's been created.…A tuple is created using parentheses.…
A dictionary is a sequence of key-value pairs.…In other languages, this may be called an associative array…or a hashed array.…A dictionary is created using curly brackets.…A set is an unordered list of unique values.…It's useful for finding…and operating upon unique values within a sequence.…A set is indicated with curly brackets.…Any of these collection types…may contain any object or type.…
As we will see in the rest of the chapter,…they may be used to represent simple…or complex structured data.…
- Python anatomy
- Types and values
- Conditionals and operators
- Building loops
- Defining functions
- Python data structures: lists, tuples, sets, and more
- Creating classes
- Handling exceptions
- Working with strings
- File input/output (I/O)
- Creating modules
- Integrating a database with Python db-api
Skill Level Intermediate
Python: Programming Efficientlywith Michele Vallisneri2h 15m Intermediate
2. Language Overview
3. Types and Values
8. Structured Data
11. String Objects
12. File I/O
13. Built-in Functions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.