Write a Python function called flatten url params that normalises URL query parameters into a flat list of…
Write a Python function called flatten url params that normalises URL query parameters into a flat list of…: a task in repo2rlenv-r2e (Harbor dataset). The function must accept a single argument params that is either: - A dict whose values are scalars, lists, or tuples. - A list of (key, value)…
The task
The function must accept a single argument `params` that is either: - A `dict` whose values are scalars, lists, or tuples. - A `list` of `(key, value)` tuples where each value is a scalar, list, or tuple.
Part of FineEnvs/repo2rlenv-r2e.