# searching easy

Is It on the Guest List?

The dragon's birthday party has a strict guest list! 🐉🎉

You get a list of names and one target name. Print yes if the target is on the list, or no if they'll have to party somewhere else.

Example:

Input: names = ["mia", "leo", "zara", "kai"], target = "zara" Output: yes

We check each name in order — mia, leo, then zara matches, so found flips to True and we print yes.

Input: names = ["mia", "leo"], target = "finn" Output: no

We check every name and never see finn, so found stays False the whole way through.

💡 need a hint?

srch-guest-list.py🔒 given lines are locked — write your code in between
loading...