"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 11:18:03.929628
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A simple fact-checking class that verifies if a given statement is true based on predefined facts.
    
    Attributes:
        knowledge_base (List[Dict[str, str]]): A list of dictionaries containing key-value pairs where the key is the fact and the value is its status ('True' or 'False').
        
    Methods:
        __init__(knowledge_base: List[Dict[str, str]]):
            Initializes the FactChecker with a knowledge base.
            
        check_fact(statement: str) -> bool:
            Checks if a given statement is true based on the knowledge base.
            
    Example usage:
        kb = [
            {'Statement': 'The Earth orbits the Sun', 'Status': 'True'},
            {'Statement': 'Water boils at 100 degrees Celsius at sea level', 'Status': 'True'}
        ]
        
        fact_checker = FactChecker(knowledge_base=kb)
        print(fact_checker.check_fact('The Earth orbits the Sun'))  # Output: True
    """
    
    def __init__(self, knowledge_base: List[Dict[str, str]]):
        self.knowledge_base = knowledge_base
    
    def check_fact(self, statement: str) -> bool:
        for fact in self.knowledge_base:
            if fact['Statement'] == statement:
                return fact['Status'] == 'True'
        raise ValueError(f"Fact '{statement}' not found in the knowledge base.")


# Example usage
kb = [
    {'Statement': 'The Earth orbits the Sun', 'Status': 'True'},
    {'Statement': 'Water boils at 100 degrees Celsius at sea level', 'Status': 'True'}
]

fact_checker = FactChecker(knowledge_base=kb)
print(fact_checker.check_fact('The Earth orbits the Sun'))  # Output: True
print(fact_checker.check_fact('2 + 2 equals 5'))           # Raises ValueError as this fact is not in the knowledge base
```