"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 04:21:30.470174
"""

```python
from typing import List, Tuple

class FactChecker:
    """
    A simple fact-checking system that evaluates given statements against a set of predefined facts.
    
    Attributes:
        knowledge_base: A list of tuples where each tuple contains a statement and its truthfulness (True or False).
        
    Methods:
        __init__(knowledge_base): Initializes the FactChecker with a knowledge base.
        check_fact(statement: str) -> bool:
            Checks if the given statement is in the knowledge base and returns its truthfulness.
    """
    
    def __init__(self, knowledge_base: List[Tuple[str, bool]]):
        self.knowledge_base = knowledge_base
    
    def check_fact(self, statement: str) -> bool:
        """
        Check if a statement exists in the knowledge base and return its truthfulness.

        Args:
            statement (str): The statement to check.
        
        Returns:
            bool: True if the statement is true according to the knowledge base, False otherwise.
        """
        for fact in self.knowledge_base:
            if fact[0] == statement:
                return fact[1]
        raise ValueError(f"Statement '{statement}' not found in knowledge base.")

# Example usage
if __name__ == "__main__":
    # Creating a simple knowledge base with some facts
    knowledge_base = [
        ("The Earth is round", True),
        ("Water boils at 100 degrees Celsius at sea level", True),
        ("AI can solve complex problems", False)  # Just an example, not always true in all contexts
    ]
    
    # Initialize the FactChecker with the given knowledge base
    fact_checker = FactChecker(knowledge_base)
    
    # Check a few facts
    print(fact_checker.check_fact("The Earth is round"))  # Output: True
    print(fact_checker.check_fact("AI can solve complex problems"))  # Output: False
    
    # This statement is not in the knowledge base, should raise ValueError
    try:
        print(fact_checker.check_fact("Is Python better than Java?"))
    except ValueError as e:
        print(e)
```