How to add function as Value in dictionary in python?

I have another .python file where all functions are written, e.g.

def EqualToCheck(value, comparingValue, ExpectedVal:bool):
    if (value == comparingValue):
        return ExpectedVal
    else :
        return not ExpectedVal

def LessThanCheck(value, comparingValue, ExpectedVal:bool):
    if (value < comparingValue):
        return ExpectedVal
    else :
        return not ExpectedVal

I want to call these functions from another py file where I want to call these functions if my data has a certain string. e.g.

callFunc = {
 "checkEqual" : EqualToCheck(5,6,True),
 "lessthanEqual" : LessThanCheck(5,6,True)
}

How can I do it?

Login