Learn how to implement and use the floodfill algorithm in Python.
Size matters at codegolf.stackexchange.com.