Python 2d Lists: A Project-based Approach
1h 23mIntermediate2020-03-04
Authors

Robin Andrews
Founder of Compucademy
Course details
2D lists are an essential data structure in programming. In this practical course, learn how to create and work with 2D lists in Python as you build a full-fledged memory game. Instructor Robin Andrews begins with the basics, explaining what 2D lists are and how to put them to work in Python. Robin quickly moves from the theoretical to the practical, delving into the specifics of creating a simple memory game based on card matching. He explains how to import modules, write functions that support the operations of your game, and validate user input. Plus, he shares strategies for refining your project. Upon wrapping up this course, you'll have a working game that serves as a testament to your enhanced understanding of 2D lists in Python.
Skills covered
PythonLearningProgramming LanguagesOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - 2D lists in Python
- 02 - Memory game - Demonstration
- 03 - Your Python setup
1. Review of 1D Lists in Python
- 04 - Python 1D lists review
2. 2D Lists in Python
- 05 - Python 2D lists - Introduction
- 06 - Iterating through 2D lists in Python
- 07 - Creating and working with 2D lists in Python
- 08 - Challenge - Dice sums exercise
- 09 - Solution - Dice sums exercise
3. Game Outline
- 10 - Imports and constants
- 11 - Function stubs - The skeleton of your program
4. Game Functions
- 12 - Supporting functions in Python
- 13 - Additional helper functions in Python
- 14 - create board()
- 15 - Displaying elements of a 2D list in Python
- 16 - Working with a 2D list in Python, part 1
- 17 - Working with a 2D list in Python, part 2
- 18 - Getting user input in Python
- 19 - Validating user input in Python, part 1
- 20 - Validating user input in Python, part 2
- 21 - main() function final game logic
Refining the Game
- 22 - Refinements, part 1
- 23 - Refinements, part 2
- 24 - Review, comments, and next steps