Here is my code
hrs = raw_input("Enter Hours:")
h = float(hrs)
rate = raw_input("Enter Rate:")
r = float(rate)
if hrs <= 40
pay = hrs * rate
print pay
else hrs > 40
pay = hrs * 15.75
print pay
Here is the error message
486406789.415.py", line 6
if hrs <= 40
^
SyntaxError: invalid syntax
Aucun commentaire:
Enregistrer un commentaire