As a general purpose programming language, python has a number of libraries that can be used for different purposes. PyGame is a free and open source python library that makes it easier to make multimedia applications like games.
I’ve used it a number of times in the classroom, for a few different purposes, from giving students an opportunity to develop and prototype simple platform games quickly in a game development context, to using it as a way to demonstrate the event driven programming paradigm.
Regardless of what I’m using PyGame for, I always find the PyGame in a Day activity, developed for the Girls Programming Network, to be an excellent way to introduce students to PyGame.
Attached here is a modified and updated version of that activity that I developed for my own classroom. Students should have a basic understanding of python, including looping and lists before starting this.