How to plot a 3d grid of points inside a region

I have a 3D object with a specific dimension and let’s say I have a bounding box for that as well. I want to plot a 3D grid of points at certain locations inside this box.I’m familiar with python but kinda new to blender so I’m having a hard time figuring this out.