In this video, I show How to in Blender zoom to object on Windows and Mac. Also called as focus on object, and in Blender, it's called Frame Selected. And the python command is view_selected.
The video also shows related commands like:
Border zoom (Zoom Region)
Zoom with Middle mouse button
Center cursor and frame all
Working with Empties
Align Active Camera to View
Move the camera closer / further from the object with shortcuts
Lock Camera to view
local view and its shortcut
Enjoy the Blender Zoom to Object video.