How to assign a material to multiple faces with python?
As shown in the following image,
there is a cube,
I subdivide one big face into 49 small faces,
then I assign the green material to the 49 small faces with mouse.

Question:
I need to assign the green material to the 49 small faces with python API,how to do it?