Python can make games! While it's not used for AAA titles, it's perfect for learning game development and building 2D games.
Pygame is the most popular game library. It handles graphics, sound, input — everything you need. People have built platformers, puzzle games, RPGs, and even published games on Steam with it!