You are viewing a single comment's thread. Return to all comments →
It works because Python uses "truthiness" to test conditions. An empty container (list, dict, set, tuple, string, etc.) is considered False.
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
It works because Python uses "truthiness" to test conditions. An empty container (list, dict, set, tuple, string, etc.) is considered False.