Default parameter
Section: Functions
Default parameter
python
python
def connect(host: str, port: int = 5432) -> tuple[str, int]:
return host, portLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Functions