In this video I show you how you can easily do collision detection in Pygame. If you enjoyed this video give it a like and if I get enough likes, then I will show you how to make a Whack a Molegame with only a few more lines of code.
The code is here: https://gist.github.com/jamesabela/67...
Code editor: https://codewith.mu/ (Most python editors work, but you might have to install the Pygame library.)