01 - Preheat the oven to 350°F. Grease and flour a 9x5-inch loaf pan, ensuring all surfaces are coated to prevent sticking.
02 - In a medium bowl, whisk together the flour, baking soda, baking powder, salt, cinnamon, and nutmeg until evenly distributed.
03 - In a large bowl, beat the eggs, vegetable oil, granulated sugar, brown sugar, and vanilla extract until the mixture is smooth and well combined.
04 - Stir the grated zucchini into the wet mixture until evenly distributed throughout the batter.
05 - Add the dry ingredients to the wet ingredients. Fold gently until just incorporated, being careful not to overmix as this can result in a dense bread.
06 - Fold in the chopped walnuts or pecans if using, distributing them evenly throughout the batter.
07 - Pour the batter into the prepared loaf pan and smooth the top with a spatula to ensure even baking.
08 - Bake for 50 to 60 minutes, or until a toothpick inserted into the center comes out clean with no wet batter attached.
09 - Allow the bread to cool in the pan for 10 minutes. Then transfer to a wire rack to cool completely before slicing.