What are truthy and falsy values?
Model answer
In a condition, some values count as False: False, None, 0, 0.0, empty strings, empty lists, tuples, dicts and sets. Everything else is True. So if items: checks that a list is not empty.
Learn this topic
Variables, Numbers, Text and input() in Python in the course Python for Beginners: Learn to Code with Real Projects.
Sign in to add your own answer.