For a 4-digit lock, start by setting the default code, which is usually "0000," and pulling the shackle to open it. If you want to change the code, turn the shackle to a designated reset position (usually 90° or 180°), press it down, and set a new combination. Once done, release the shackle to lock in your new code, and always test it before locking anything valuable.