Learn how to implement and use the floodfill algorithm in Python.
Check out codegolf.stackexchange.com if you want to solve programming puzzles, but with a twist.