這裏是我的代碼的Python 2.7未知的語法錯誤
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
以下是錯誤消息
486406789.415.py", line 6
if hrs <= 40
^
SyntaxError: invalid syntax
[if語句在條件後需要冒號(:))(https://docs.python.org/3/tutorial/controlflow.html# if語句) –