You can feed it to them raw or cooked. You can cook it until it is soft or only partly cook it. You can also leave the skin on or peel it off. If you leave the skin on then it helps hold the zucchini together but make sure it is free of any chemicals before it goes in the tank.
Most people just slice it thinly and drop it in raw. You can also feed pumpkin in the same way.