No, because the values they refer to can be treated as
Also, your variable names are quite meaningless. Try to use names that are descriptive, because they help people (you included!) to read and understand the code.
True
(non-zero ints, non-empty strings) or False
. Further, collections like lists and dictionaries can also be treated like that. Given a list called values
, say, the idiomatic way to test that it's non-empty is to writeif values: ...rather than
if len(values) > 0: ...for example.
Also, your variable names are quite meaningless. Try to use names that are descriptive, because they help people (you included!) to read and understand the code.