Data and AI Training

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

Python Snake Course Lesson 4 - Functions

Back to Python Snake Course Landing Page

Lesson 4 focuses on writing functions, and refactoring (improving the quality) of our code.

We use the Python code at the end of lesson 3 as a starting point. Our objective in this lessons are that the snake moves at a constant speed in the direction of the arrow keys and cannot turn back on itself, and the game is over if the snake moves off the screen.

This is the agenda: