"""
SelfAssessment
Generated by Eden via recursive self-improvement
2025-11-01 21:12:35.192616
"""

class SelfAssessment:
    def __init__(self):
        self.questions = [
            "How confident are you in your business idea (1-5)?",
            "Do you have a solid understanding of market research and trends (yes/no)?",
            "Have you conducted any financial analysis for your potential business? (yes/no)",
            "Are you familiar with the legal requirements for starting a business in your country? (yes/no)",
            "How many outreach messages are you ready to send as part of your marketing strategy? (number)",
            "Do you have a clear understanding of your target audience and their needs? (yes/no)"
        ]
        self.criteria = {
            1: "Very unsure, may need more guidance",
            2: "Somewhat unsure, could benefit from further research",
            3: "Neutral, balanced between confidence and caution",
            4: "Confident, well-prepared for entrepreneurship",
            5: "Extremely confident, ready to take on the challenge"
        }

    def ask_questions(self):
        responses = []
        print("Welcome to the SelfAssessment Tool. Please answer the following questions.")
        for question in self.questions:
            response = input(question + ": ")
            responses.append(response)
        return responses

    def evaluate_assessment(self, responses):
        assessment_score = 0
        for i, response in enumerate(responses[1:]):
            if response.lower() == "yes":
                assessment_score += int(responses[i])
            elif responses[i] != "":
                assessment_score += min(int(responses[i]), 5)
        
        return self.criteria[assessment_score]

    def run_assessment(self):
        responses = self.ask_questions()
        result = self.evaluate_assessment(responses)
        print(f"Your self-assessment score is: {result}")

if __name__ == "__main__":
    assessment_tool = SelfAssessment()
    assessment_tool.run_assessment()