# power tools medium

Came to Both Parties

Saturday's party AND Sunday's party — who's the social butterfly at both? 🦋

You get Saturday's sat guests and Sunday's sun guests. Print the names that appear on BOTH lists, in alphabetical order, space-separated — or nobody.

Example:

Input: sat = ["mia", "leo", "kai"], sun = ["kai", "ana", "mia"] Output: kai mia

set(sat) & set(sun) gives {"kai", "mia"} — sorted alphabetically for printing.

💡 need a hint?

pt-both-parties.py🔒 given lines are locked — write your code in between
loading...