JJoeven

Exercises / tools

Validate tool args

validate('geocode', args) returns None or an error string. city must be a non-empty str. extra keys fail. Test three payloads.

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.