Problem 7 of 50

Easy

lightbulb What to do

You have a list of items and two friends, Takahashi and Aoki, who each want some of those items. The task is to check if there is at least one item that both friends want.

Key Concepts
if-statements loops string manipulation conditional checks
Examples

Input: 'oxoo', 'xoox'

Output: Yes

Input: 'xxxxx', 'ooooo'

Output: No

code Python Editor
Loading Python...
Test Results
tips_and_updates Tips for Beginners
  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first