> (This is a serious question) How do you imagine bool > presented to (non-programmer) newbies. > > Not presented. Presented disjunct from int at the beginning. > Using the notion of subtyping/subclassing. > Operationally: > True == 1 > False == 0 > etc . Good point. The tutorial needs to be updated. I propose not to make a big deal from it, but to mention that (a) you get bools from most propositions, (b) False==0, True==1, (c) most other objects are also usable as Boolean values, e.g. "" is false, "x" is true. Needs to distinguish clearly between False and True (the specific bool values) and more general falsehood/truth. --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4