============================================================
 LAMBDA FUNCTIONS & FUNCTIONAL TOOLS - Demo Run
============================================================

--- map() with lambda: squares ---
  [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]

--- filter() with lambda: evens ---
  [2, 4, 6, 8, 10]

--- reduce() with lambda: product ---
  product of 1..10 = 3628800

--- Comprehension equivalents (comparison) ---
  squared via comprehension: [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]  (matches map: True)
  evens via comprehension:   [2, 4, 6, 8, 10]  (matches filter: True)
  Comprehensions are generally preferred in modern Python for single transforms/filters --
  map/filter shine more when the function is already named/reusable, or chaining many steps.

--- sorted() with lambda key ---
  sorted by second element: [(1, 'a'), (2, 'b'), (3, 'c')]

--- max()/min() with lambda key on dicts ---
  Most expensive: {'name': 'Gadget', 'price': 24.99}

--- Chaining map + filter ---
  map+filter chain: [4, 16, 36, 64, 100]
  single comprehension: [4, 16, 36, 64, 100]
  Same result: True  -- the comprehension reads more clearly here.

============================================================
 Assignment: product filtering/sorting/formatting pipeline
============================================================
  Doohickey - $4.99
  Widget - $9.99
  Gizmo - $14.99
