• + 0 comments

    For python 3:

    `x, k = map(int, input().split())

    expression = input()

    result = eval(expression, {"x": x})

    print(k==result)`