Find the First Available Seat in Python
Use Python's next() with a generator to return the first truly available seat label, or None when the list has no open seats.
Python
Challenge overview
- Format
- Build a Function
- Category
- Python
- Difficulty
- Beginner
pythonlistsdictionariesgenerator-expressionsnextnone
Keep practicing
More coding challenges
JavaScript · Beginner
Find the Low Stock Products
Write a JavaScript function that returns low-stock product names in source order, including items exactly at the requested inventory limit.
View challengePython · Beginner
Find the Low Stock Products in Python
Write a Python function that returns low-stock product names in their original order, including items exactly at the supplied limit.
View challengeJavaScript · Intermediate
Fix the Async Retry Helper
Repair an async retry helper so it stops at the first successful result, respects the attempt limit, and throws the final failure.
View challenge

