diff --git a/native-datatypes.html b/native-datatypes.html index 36d5da7..e00705f 100644 --- a/native-datatypes.html +++ b/native-datatypes.html @@ -315,9 +315,12 @@ ValueError: list.index(x): x not in list no, it's false >>> is_it_true(['a']) yes, it's true +>>> is_it_true([False]) +yes, it's true
  1. In a boolean context, an empty list is false.
  2. Any list with at least one item is true. +
  3. Any list with at least one item is true. The value of the items is irrelevant.