You can make a game with Python using pygame (or another library). Alternatively, you can use HTML/CSS/JavaScript to do a game using Phaser (or another library), be sure to check out the features those game frameworks offers to make an adequate choice.