Python Forum

Full Version: question 1 on the midterm exam
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
question 1 on the midterm exam:

>>> bool('False')
True
>>>
why?

who would make an exam like that?

would anyone answer this correctly?

would you put it on the final exam?
I wouldn't make all the questions on exam like that, but it looks alright to me. It's simple test of understanding what kind of data is treated as True or False, which is very useful to know when using conditional statements.
Well, it is definitely a trick question so you can get things like that wrong just because you aren't paying enough attention to what you assumed was a straight-forward honest question.

For bonus points at the end of a test or something though, sure.