"""
SelfAssessmentTool
Generated by Eden via recursive self-improvement
2025-11-01 22:50:29.445626
"""

class SelfAssessmentTool:
    def __init__(self):
        self.questions = [
            "Do you have a strong desire to start and run your own business?",
            "Can you handle uncertainty and risk associated with entrepreneurship?",
            "Are you willing to invest time, effort, and resources into starting a business?",
            "Do you possess the necessary skills and knowledge to manage a business?",
            "How well do you handle stress and pressure in challenging situations?"
        ]
    
    def ask_questions(self):
        results = {}
        for i, question in enumerate(self.questions):
            answer = input(question + "\n")
            results[i] = {"question": question, "answer": answer}
        return results
    
    def evaluate_potential(self, answers):
        entrepreneurial_score = 0
        for key, value in answers.items():
            if 'yes' in value['answer'].lower() or 'y' in value['answer'].lower():
                entrepreneurial_score += 1
        total_questions = len(self.questions)
        self.entrepreneurial_potential_percentage = (entrepreneurial_score / total_questions) * 100
        return self.entrepreneurial_potential_percentage
    
    def display_results(self, percentage):
        print(f"Your entrepreneurial potential based on this assessment is {percentage:.2f}%.")
        if percentage >= 75:
            print("You have a high likelihood of succeeding as an entrepreneur.")
        elif percentage >= 40:
            print("While you may face some challenges, your chances are still good with the right support and resources.")
        else:
            print("Consider exploring other career paths or seeking additional training to increase your entrepreneurial potential.")

tool = SelfAssessmentTool()
responses = tool.ask_questions()
potential_percentage = tool.evaluate_potential(responses)
tool.display_results(potential_percentage)