Python
if evaluation of variables:
https://www.w3schools.com/python/python_booleans.asp
Almost any value is evaluated to True if it has some sort of content.
Any string is True, except empty strings.
Any number is True, except 0.
Any list, tuple, set, and dictionary are True, except empty ones.
No comments:
Post a Comment