You want to buy exactly two gifts and spend your whole budget — not a penny more or less.
Task: write has_pair(prices, budget). Return True if two different items in prices add up exactly to budget, and False otherwise.
[5, 5] with a budget of 10 is True.[5] with a budget of 10 is False.Once your code passes every test, a reference solution shows up here so you can compare it with yours.