ej3.1.py

#!/usr/bin/python # -*- coding: utf-8 -*- factor = 1 horas = float(raw_input('Introduce las horas? ')) tarifa = float(raw_input('Tarifa por horas? ')) if (horas > 40): factor = 1.5 print 'Salario %.2f ' %(horas*tarifa*factor)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.