diff options
author | Cristhofer Travieso <cristhofert97@gmail.com> | 2012-08-14 22:05:38 (GMT) |
---|---|---|
committer | Cristhofer Travieso <cristhofert97@gmail.com> | 2012-08-14 22:05:38 (GMT) |
commit | 1ebe0ddc7375392b10d8d3ac8f86dc18a18375d1 (patch) | |
tree | 554237cd703dbad068f68393c8ac4aad96b427f1 /convert.py | |
parent | 9f2500707985b4f886374aced46b22368b89d901 (diff) |
Corregi los bugs de la interfas
Diffstat (limited to 'convert.py')
-rw-r--r-- | convert.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -32,10 +32,7 @@ volume = {'Meter3': (1, 1)} temp = {'Celsius': (1, 1)} -dic = lenght - -def convert(number, unit, to_unit): +def convert(number, unit, to_unit, dic): main_unit = number * dic[unit][0] return main_unit * dic[to_unit][1] - |