Open this example in the interactive library
Source code
def configure(**options):
return sorted(options.items())
print(configure(theme='dark', size=14))Sample output
[('size', 14), ('theme', 'dark')]
Accept keyword configuration. A self-contained example using the Python standard library.
Open this example in the interactive library
def configure(**options):
return sorted(options.items())
print(configure(theme='dark', size=14))[('size', 14), ('theme', 'dark')]