Arjun Mehta24 days agoMost voted5
answer is right. "False" is a non empty string, and any non empty string is truthy. bool("") is the only string that gives False
the one about the output of print(bool("False")). I said False, it says True. is the answer key wrong?
answer is right. "False" is a non empty string, and any non empty string is truthy. bool("") is the only string that gives False
omg I read it as the boolean False. ok my bad 🤦♀️
Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.