Write a function. Test real cases. Improve your solution.
Given a list of unique column-name strings and a list of values, return a dictionary that pairs each column with the value at the same position. Use None when a column has no corresponding value. Ignore values beyond the last column. Empty columns produce an empty dictionary. Values may be any JSON-compatible data, including None, False, zero, lists, or dictionaries. Do not change either input. Dictionary key order does not affect grading.
[["name", "team"], ["Ari", "Platform"]]
{"name": "Ari", "team": "Platform"}[["name", "team", "active"], ["Bo"]]
{"name": "Bo", "team": None, "active": None}[["name"], ["Cam", "unmapped", 12]]
{"name": "Cam"}[[], ["ignored"]]
{}[["enabled", "retries", "note"], [False, 0, ""]]
{"enabled": False, "retries": 0, "note": ""}[["tags", "settings"], [["beta"], {"retries": 2}]]{"tags": ["beta"], "settings": {"retries": 2}}[["a", "b"], []]
{"a": None, "b": None}Python 3.14 runs in your browser. The first run downloads about 13 MB; your browser can cache it for later visits. Each run starts fresh. Use synchronous functions and core standard-library modules. Network requests, package installs, and interactive input() are unavailable. Return lists, string-key dictionaries, strings, finite numbers, bools, or None. Student code stops after about four seconds, after Python loads. Python engine credits. Test results support self-study and don’t certify proficiency.