List every subset with include or skip
Every item faces one decision: in the subset or out. Two choices for each of n items give 2 ** n subsets. Recursion makes the decision for the first item and lets a smaller call handle the rest.
items = ["a", "b"]
# skip a: [], [b] take a: [a], [a, b]Think before coding
The subsets of the rest appear twice: once unchanged and once with the first item added in front. Keeping the skip branch first gives a predictable order, which helps when you compare results. Work through the example by hand before changing the starter. Decide what should happen for an empty input, a single value and a repeated value where those cases apply. The checks use several inputs so a hard-coded answer cannot stand in for the rule.
Your task
Write subsets(items) returning all 2 ** n subsets as lists, skip branch first, preserving item order inside each subset.
The explanation opens here once every check passes.