MCPcopy Create free account
hub / github.com/geekcomputers/Python / eval_binary_expr

Function eval_binary_expr

Voice Command Calculator.py:32–34  ·  view source on GitHub ↗
(op1, oper, op2)

Source from the content-addressed store, hash-verified

30
31
32def eval_binary_expr(op1, oper, op2):
33 op1, op2 = int(op1), int(op2)
34 return get_operator_fn(oper)(op1, op2)
35
36
37print(eval_binary_expr(*(my_string.split())))

Callers 1

Calls 1

get_operator_fnFunction · 0.85

Tested by

no test coverage detected