Skip to main content

Practice · 4 of 4

Capstone Warmup: Max Gap

CHALLENGE
Difficulty: beginner+25 XP

Write max_gap(numbers) returning the largest difference between adjacent values in the list (None for lists with fewer than 2 items).

Back to lesson: Practice: Transformation & AI Critique