Broken key or home lockout: which problem do you have?

https://theentryguide.currentvale.com/posts/broken-key-or-home-lockout-which-problem-do-you-have

A broken key snapped off in the lock, or a lockout without a key at home? Both leave someone stranded, but the cause and fix differ. A broken key means a piece is stuck inside the lock, often from wear or forcing. A home lockout happens when keys are lost or left inside. Either way, getting back inside or repairing the lock is a job for a locksmith, not a DIY attempt that could damage the door.