A lock includes a lock body, a shackle insertable into two insertion slots of the lock body, a slidable box movable into and out of an accommodation chamber of the lock body, a locking mechanism engageable with the shackle when the slidable box is moved into the accommodation chamber, and a combination lock unit mounted in the lock body and operable by the user to move a movable locking frame between a locking position and an unlocking position to lock and unlock the slidable box.