poems by Rena J. Mosteirin

Blog Archive

Thursday, February 16, 2012

Bool

The syntax is the same/The modulus operator turns out to be surprisingly useful.
divisible by another-/ belong to the type bool;/ they are not strings:


>>> type (False)


not
greater
less than
greater than or equal to
less than or equal to
you, the Python mathematical
There is no such thing as =

similar to their meaning in English. For example,
it is useful to have a body with no statements
which does nothing; The syntax looks like this:












This is an erasure poem made from parts Think Python(Copyright © 2008 Allen Downey.) The LATEX source for this book is available from thinkpython.com

No comments: