Commit 003fd023 authored by muris2016's avatar muris2016
Browse files

Modificado con respecto a

parent 0f91fca4
......@@ -7,7 +7,6 @@ import calcoo
class CalculadoraHija(calcoo.Calculadora):
def __init__(self):
self.operations["multiplica"] = self.multiply
......@@ -24,8 +23,7 @@ class CalculadoraHija(calcoo.Calculadora):
if __name__ == "__main__":
op1 = calc.to_number(sys.argv[1])
operation = sys.argv[2]
op2 = calc.to_number(sys.argv[3])
op1, operation, op2 = calc.take_args()
calc = CalculadoraHija()
print(calcoo.do_operation(calc, operation, op1, op2))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment