A mechanical dial lock can be programmed with a 4 to 10 digit combination whereas a digital lock allows as complex code as the user needs. Mechanical locks operate without any batteries and electricity which are required for digital locks.