← back to unit
Easy
# searching easy
First Word Starting With…
You're playing the alphabet game on a road trip. 🚗
You get a list of words and a single letter. Print the first word that starts with that letter, or none if no word does.
Example:
Input: words = ["cloud", "banana", "cherry", "bus"], letter = "b"
Output: banana
cloud doesn't start with b, but banana does — that's the first match, so we print it and stop looking.
💡 need a hint?
srch-first-word-starting.py🔒 given lines are locked — write your code in between
loading...