if knight>=2 and knight<=2:
return "i am a knight"
elif knight==2(true or false):
return "i am not a knight"
(true or false) is wrong. (not valid expression in python)
You don't have to mention what certain condition will evaluates to.
We just put conditional expression there and python will turn it into True/False based on condition.
This is suffice
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.