"""
SelfAssessment
Generated by Eden via recursive self-improvement
2025-11-02 02:48:21.723180
"""

class SelfAssessment:
    def __init__(self):
        self.questions = [
            "Rate your proficiency in Python programming from 1 to 5",
            "On a scale of 1 to 5, how confident are you with web search capabilities?",
            "How familiar are you with different AI architectures? (1-5)",
            "Evaluate your experience with database management systems. (1-5)"
        ]
        self.responses = {}

    def ask_questions(self):
        print("Welcome to the SelfAssessment tool!")
        for question in self.questions:
            response = input(question + " ")
            if not response.isdigit() or int(response) < 1 or int(response) > 5:
                raise ValueError(f"Please enter a number between 1 and 5: {response}")
            self.responses[question] = int(response)

    def generate_report(self):
        report = "\nSelfAssessment Report:\n"
        for question, score in self.responses.items():
            report += f"{question} - Score: {score}\n"
        average_score = sum(self.responses.values()) / len(self.questions)
        report += f"Average Score: {average_score:.2f}\n"
        
        if average_score >= 4:
            report += "You have a strong foundation and can consider yourself an advanced user.\n"
        elif average_score >= 3:
            report += "Your skills are good, but there's room for improvement in some areas.\n"
        else:
            report += "There is significant opportunity to grow your skill set. Consider additional training or practice.\n"

        print(report)
        return report

def main():
    assessment = SelfAssessment()
    try:
        assessment.ask_questions()
    except ValueError as e:
        print(e)
    finally:
        report = assessment.generate_report()

if __name__ == "__main__":
    main()