diff options
Diffstat (limited to 'convertline.py')
-rw-r--r-- | convertline.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/convertline.py b/convertline.py new file mode 100644 index 0000000..5e923b4 --- /dev/null +++ b/convertline.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# convert.py by: +# Cristhofer Travieso <cristhofert97@gmail.com> + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import convert + +print '*********convert*********' +print convert.lenght.keys() +unit = raw_input('Ingresa una medida: ') +to_unit = raw_input('Ingresa la tra medida: ') +number = input('Ingresa el numero: ') + +print convert.convert(number, unit, to_unit) |