Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/convert.py
diff options
context:
space:
mode:
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]
-