You are viewing a single comment's thread. Return to all comments →
a = int(raw_input()) b = int(raw_input()) def do_it_all(fn): def poll(*args, **kwargs): return fn(*args, **kwargs) return poll def add(a, b): return a + b def sub(a, b): return a - b def mul(a, b): return a * b add = do_it_all(add) print(add(a, b)) sub = do_it_all(sub) print(sub(a, b)) mul = do_it_all(mul) print(mul(a, b))
Seems like cookies are disabled on this browser, please enable them to open this website
Arithmetic Operators
You are viewing a single comment's thread. Return to all comments →