Commit ac4bc77b authored by muris2016's avatar muris2016
Browse files

Version simplificada

parent 02271f31
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from sys import argv
import csv
import calcplus
import calcoohija
if __name__ == "__main__":
script, filename = argv
with open(filename) as file:
calculator = calcoohija.CalculadoraHija()
for line in csv.reader(file):
operation = line[0]
numbers = line[1:]
calcplus.operating(calculator, operations, numbers)
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