Constant
Domain: Programming Fundamentals
π― Motivation
Some values should never change - pi, the speed of light, a max score. Constants are variables you agree not to modify.
π Concrete Example
MAX_LEVELS = 50 or PI = 3.14159. By convention, uppercase names mean dont change thisβ.
π Analogy
A carved stone sign at a park entrance - βPark Hours: 6am-10pmβ is fixed and permanent. Everyone agrees not to change it.