// Example Python code for a dating app
class DatingApp:
def __init__(self, name, age, interests):
self.name = name
self.age = age
self.interests = interests
def find_match(self, other):
common_interests = set(self.interests) & set(other.interests)
if common_interests:
return f"Match found! You both enjoy {', '.join(common_interests)}"
else:
return "No common interests found."
# Example usage
user1 = DatingApp("Alice", 25, ["hiking", "reading", "cooking"])
user2 = DatingApp("Bob", 28, ["hiking", "gaming", "traveling"])
print(user1.find_match(user2))