diff options
author | Cristhofer Travieso <cristhofert97@gmail.com> | 2012-08-17 00:02:59 (GMT) |
---|---|---|
committer | Cristhofer Travieso <cristhofert97@gmail.com> | 2012-08-17 00:02:59 (GMT) |
commit | 93b4b36a4f4bfe9d3c2454ff64d9a6fb348af3bc (patch) | |
tree | 6dc35fee09a2a8300a51e51cf56ecb65bcfb607f /convertline.py | |
parent | 86371a6e431346ef616bade6b07dd8edb5746f12 (diff) |
Add more units
Diffstat (limited to 'convertline.py')
-rwxr-xr-x | convertline.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/convertline.py b/convertline.py index 52436e6..f8ab161 100755 --- a/convertline.py +++ b/convertline.py @@ -24,16 +24,17 @@ import convert estado = True +dic = convert.temp while estado: os.system('clear') print '*********convert*********' - print convert.lenght.keys() + print dic.keys() number = input('No.: ') unit = raw_input('de : ') to_unit = raw_input('a: ') - print convert.convert(number, unit, to_unit, convert.lenght) + print convert.convert(number, unit, to_unit, dic) if raw_input('Deseas salir(y/n): ') == 'y': sys.exit() else: |