I'm trying to settle a debate here. We have a python-quiz in our cs-class with the question:
"The Expression behind the if has to be of the type boolean." True or false?
And I immediatly thought: Well you can put strings into ifs, so this has to be false.
My teacher is arguing otherwise. They say, because everything can be interpreted as a boolean, the statement from the quiz is true.
Who is right and why?