Commit e914b4ff authored by muris2016's avatar muris2016
Browse files

Estructura mejorada

parent 175871f8
# -*- coding: utf-8 -*-
from sys import argv
import sys
import calcoohija
import calcoo
......@@ -14,9 +14,9 @@ def operating(calculator, operation, numbers):
if __name__ == "__main__":
script, filename = argv
file = open(filename)
script, filename = sys.argv
calculator = calcoohija.CalculadoraHija()
file = open(filename)
for line in file.readlines():
operation = line.split(',')[0]
numbers = line.split(',')[1:]
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