Write a function. Test real cases. Improve your solution.
options is a list of {"name": string, "values": [strings]} objects. Names are unique; values within each option are also unique. Return all combinations as dictionaries containing one selected value for every option. Respect option order: the first option changes slowest and the last changes fastest, with values visited in their listed order. If any option has no values, return []. If options itself is empty, return [{}], representing one configuration with no selections. Leave the input unchanged; dictionary key order does not affect grading.
[[{"name": "color", "values": ["red", "blue"]}, {"name": "size", "values": ["S", "M"]}]][{"color": "red", "size": "S"}, {"color": "red", "size": "M"}, {"color": "blue", "size": "S"}, {"color": "blue", "size": "M"}][[]]
[{}][[{"name": "color", "values": ["red"]}, {"name": "size", "values": []}]][]
[[{"name": "region", "values": ["west", "east", "central"]}]][{"region": "west"}, {"region": "east"}, {"region": "central"}][[{"name": "os", "values": ["linux", "windows"]}, {"name": "arch", "values": ["x64"]}, {"name": "mode", "values": ["debug", "release"]}]][{"os": "linux", "arch": "x64", "mode": "debug"}, {"os": "linux", "arch": "x64", "mode": "release"}, {"os": "windows", "arch": "x64", "mode": "debug"}, {"os": "windows", "arch": "x64", "mode": "release"}][[{"name": "label", "values": ["", " Pro "]}]][{"label": ""}, {"label": " Pro "}]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.