Break and Continue: While Loops

Pierre-Alain Dorange pdorange at pas-de-pub-merci.mac.com
Fri Jun 24 03:53:16 EDT 2016


BartC <bc at freeuk.com> wrote:

> But even with ordinary conditionals, False is False, but [False] is 
> True. And [] is False, while [[]] is True. A class instance is always
> True, even when empty. And then "False" is True as well!

"Empty" is not "Nothing". To be empty, something must exist first.

-- 
Pierre-Alain Dorange               Moof <http://clarus.chez-alice.fr/>

Ce message est sous licence Creative Commons "by-nc-sa-2.0"
<http://creativecommons.org/licenses/by-nc-sa/2.0/fr/>



More information about the Python-list mailing list