Space Python Loading Python…

Variable Keyword Arguments **kwargs

 
0:00 / 0:00

Challenge

Practise what this example shows: fix or write code until the tests pass.

Extra log fields

Write the codeMedium 2 stages

Extend format_log() from "Log formatter function" with **fields, so any extra keyword arguments are added to the line as key=value pairs, then pass whole dicts of fields into it with ** at the call.

Start the challenge

Discussion

Stuck on this example or want to go further? Ask here, or see what others asked.

Log in to ask and reply.

script.py
PythonLn 1, Col 1Spaces: 4
Loading the Python environment…

Separate arguments with commas. They're passed on every Run as sys.argv[1:].