Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/convert.py
diff options
context:
space:
mode:
authorCristhofer Travieso <cristhofert97@gmail.com>2012-08-14 22:05:38 (GMT)
committer Cristhofer Travieso <cristhofert97@gmail.com>2012-08-14 22:05:38 (GMT)
commit1ebe0ddc7375392b10d8d3ac8f86dc18a18375d1 (patch)
tree554237cd703dbad068f68393c8ac4aad96b427f1 /convert.py
parent9f2500707985b4f886374aced46b22368b89d901 (diff)
Corregi los bugs de la interfas
Diffstat (limited to 'convert.py')
-rw-r--r--convert.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/convert.py b/convert.py
index d230dc4..59031fc 100644
--- a/convert.py
+++ b/convert.py
@@ -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]
-