<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resolve(self, symbol):
 """ Resolve a symbol encountered during a rule evaluation into the actual value for that symbol. :param symbol: The symbol being resolved. :returns: The value of that symbol. If the symbol was not declared in the ``variables`` parameter of the constructor, a call will be made to the ``Policy``'s ``resolve()`` method. """


        # Try the variables first
        if symbol in self.variables:
            return self.variables[symbol]

        return self.policy.resolve(symbol)