📖 INDEX
LOADING ENGINE...
Default Parameter Value
PYTHON REFERENCE // default-parameter-value
If we call the function without argument, it uses the default value
Syntax
def my_function(country = 'Norway'):
print('I am from ' + country)Examples
Example 01Basic Usage
def my_function(country = 'Norway'):
print('I am from ' + country)Best Practices
- Consult official Python documentation for advanced usage.
- Ensure proper indentation and Pythonic style (PEP 8).