# power tools medium

No Overlap, Promise?

Team Red and Team Blue swear they share no players β€” the referee checks. πŸ”΄πŸ”΅

You get the red roster and the blue roster. Print clean if no player is on both teams, or traitor detected if the rosters overlap.

Example:

Input: red = ["mia", "leo"], blue = ["kai", "ana"] Output: clean

set(red) & set(blue) is empty, so no player is shared.

Input: red = ["mia", "leo"], blue = ["leo", "zed"] Output: traitor detected

"leo" is in both sets, so the overlap isn't empty.

πŸ’‘ need a hint?

pt-no-overlap.pyπŸ”’ given lines are locked β€” write your code in between
loading...