Scope in programming defines the region or section of a program where a variable or function is accessible. A variable can have local scope (accessible only within a particular block of code) or global scope (accessible anywhere in the program). Think of it as having a passcard in an office building; some passcards allow access everywhere (global), while others only work in specific areas (local).