Open this example in the interactive library
Source code
def connect(*, host, port):
return f'{host}:{port}'
print(connect(**{'host': 'localhost', 'port': 8080}))Sample output
localhost:8080

Forward keyword arguments from a dictionary in Python.
Open this example in the interactive library
def connect(*, host, port):
return f'{host}:{port}'
print(connect(**{'host': 'localhost', 'port': 8080}))localhost:8080