Imported a script from a tutorial but mines not running

Blender and Phython noob here,

Long story short I’m following this guys video:

Where he made a script to slice a mesh and he said to press alt+p to run it, but when I do it on mine it seems to work but nothing happens.

Here’s the video to anybody interested, SKIP TO 4:32