Introduction
Default parameter values let you give a starting value to a function's input. This way, if you don't provide that input, the function still works smoothly.
When you want a function to work even if some inputs are missing.
When you want to avoid writing many versions of the same function.
When you want to provide common or typical values automatically.
When you want to make your code easier to use and read.