N
Neal Becker
IN [3]: bool('False')
Out[3]: True
In [4]: int('32')
Out[4]: 32
Out[3]: True
In [4]: int('32')
Out[4]: 32
IN [3]: bool('False')
Out[3]: True
I've always felt that if a humorous post needs a smiley, that it's not funny.Hi Neal,
IN [3]: bool('False')
Out[3]: True
If you consider strings, only an empty string has a false
value. So the string 'False' which is non-empty, results in
a true boolean value.
...
IN [3]: bool('False')
Out[3]: True
In [4]: int('32')
Out[4]: 32
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.