Break and Continue: While Loops

Pierre-Alain Dorange pdorange at
Fri Jun 24 03:53:16 EDT 2016

BartC <bc at> 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 <>

Ce message est sous licence Creative Commons "by-nc-sa-2.0"

More information about the Python-list mailing list