ej3.1.py

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

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.