Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def operation(self, variables) -> bool:
operators = self.subject[self.body] # or or and
for operator in operators:
next_operation = Operator.find_operator(operator)
if next_operation.operation(variables) == self.end:
return self.end
return True