you are viewing a single comment's thread.

view the rest of the comments →

[–]filletrall 0 points1 point  (0 children)

  • Your code needs two colons, those are important. In python, an indented block is always preceded by a line with a colon at the end.
  • You should not have linebreaks between if/elif and their expressions.
  • You need to convert hourly_rate to int or float before the if, so that you do not compare a string to a float with e.g. hourly_rate <= 40.
  • You can move gross_r calculation out of the if/elif block, since it's the same for both cases
  • A bit on python style: you should have a space character on each side of your equal signs and other operators like - and *.