diff --git a/kyu_7/pointless_farmer/solution.py b/kyu_7/pointless_farmer/solution.py index afd865412ab..b0426698072 100644 --- a/kyu_7/pointless_farmer/solution.py +++ b/kyu_7/pointless_farmer/solution.py @@ -21,7 +21,7 @@ def buy_or_sell(pairs: list, harvested_fruit: str) -> list[Any] | str: for pair in pairs: # First item in pairs is for selling, second is for buying. - if pair[0] == currently_holding == pair[-1] or pair[-1] == currently_holding: + if pair[-1] == currently_holding: results.append('sell') currently_holding = pair[0] continue