class Startup:
def __init__(self, industry, experience, location, product_type):
self.industry = industry
self.experience = experience
self.location = location
self.product_type = product_type
class Investor:
def __init__(self, industry, experience, location, investment_type):
self.industry = industry
self.experience = experience
self.location = location
self.investment_type = investment_type
class Marketplace:
def __init__(self):
self.startups = []
self.investors = []
def add_startup(self, startup):
self.startups.append(startup)
def add_investor(self, investor):
self.investors.append(investor)
def match(self, startup, investor):
if startup.industry == investor.industry and startup.experience == investor.experience and startup.location == investor.location and startup.product_type in investor.investment_type:
return True
else:
return False
marketplace = Marketplace()
# Add some startups and investors to the marketplace
startup1 = Startup("Technology", "Early stage", "San Francisco", "Software")
startup2 = Startup("Healthcare", "Growth stage", "New York", "Hardware")
investor1 = Investor("Technology", "Early stage", "San Francisco", ["Software", "Hardware"])
investor2 = Investor("Healthcare", "Growth stage", "New York", ["Biotech"])
marketplace.add_startup(startup1)
marketplace.add_startup(startup2)
marketplace.add_investor(investor1)
marketplace.add_investor(investor2)
# Check for matches
if marketplace.match(startup1, investor1):
print("Startup 1 and Investor 1 are a match!")
else:
print("Startup 1 and Investor 1 are not a match.")
if marketplace.match(startup2, investor2):
print("Startup 2 and Investor 2 are a match!")
else:
print("Startup 2 and Investor 2 are not a match.")