#!/usr/bin/python
# -*- coding: utf-8 -*-
factor = 1
try:
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)
except:
print "Error, introduzca un número"
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.