The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
The __bool__() method of lists returns True when the list is not empty, and False when the list is empty. Here, the outer list is not empty has it contains another (empty) list. As such, bool([]) returns True . (tutorialspoint.com/How-to-check-if-a-list-is-empty-in-Python)
Question difficulty: 🔵🔵🔵🔵🔵