Splitting an Image into a Grid using Python

Created using The Python Code Generator.

Prompt

Result