Conflict
ABC 409Problem 7 of 50
EasyWhat 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
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
Python Editor
Loading Python...