Data and AI Training

Home | Prices | Contact Us | Courses: Power BI - Excel - Python - SQL - Generative AI - Visualising Data - Analysing Data

Python Snake Course Lesson 3 - List and Dicts

Back to Python Snake Course Landing Page

Lesson 3 focuses on two very useful data structures: lists and dictionaries.

We use the Python code at the end of lesson 2 as a starting point. Our snake begins to move at last, and the game is over if the snake moves off the screen. We may also make our snake look less like a square and more like a snake.

It’s worth having a read of the geometry section of our guide to how we build the snake game.

The Python scripts are in the course GitHub repo.