You cannot use else HoursWorked > 40:. You can use either elif HoursWorked > 40: or only else:. Then you have unmatching parenthesis in the line above except.
else HoursWorked > 40:
elif HoursWorked > 40:
else:
except
2.1m questions
2.1m answers
60 comments
57.0k users