Ex6 print(joke_evaluation.format(False))


Hi Everyone,

Looking at the code print(joke_evaluation.format(False)). I break the code and notice I did not define a variable name that is equivalent to False. It turns out Python3 accepted it and does not shows any errors. I’m googling on it and but In the meantime, can someone explain in KISS (Keep it super simple)



False is actually a valid value for that, so all you kind of did was just change hilarious to what hilarious stands for. Try putting in a name that doesn’t exist.


thanks Zed for explanation.