Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
def
eval_binary_expr(op1, oper, op2):
33
op1, op2 = int(op1), int(op2)
34
return
get_operator_fn(oper)(op1, op2)
35
36
37
print(eval_binary_expr(*(my_string.split())))
Callers
1
Voice Command Calculator.py
File · 0.85
Calls
1
get_operator_fn
Function · 0.85
Tested by
no test coverage detected