poems by Rena J. Mosteirin

Blog Archive

Thursday, February 23, 2012

import keyword

granted to copy, distribute, (and):
you will use programming (as):
you could use an (assert):
mental model is to (break):
It turns out that (class):
the while statement and (continue):
the following function do? (def):
you can use the (del):
on the number of (elif):
If there is an (else):
True. uses_only is similar (except):
the Python interpreter can (execute):
this chapter, we are (finally):
Factorial is only defined (for):
based on an example (from):
declaration: A statement like (global):
parameter and returns True (if):
list: >>> from structshape (import):
to change the characters (in):
a return statement, it (is):
is return def for (lambda):
illegal because it does (not):
words, such as my_name (or):
you call math.sin you (pass):
destroyed. If we try to (print):
we haven’t seen before, (raise):
already there, it can (return):
makes it easy to (try):
the if statements with (while):
harder than just dealing (with):
name, like class and (yield):

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

Sunday, February 5, 2012

from The Gospel of St. John

In the beginning was the Code, and the Code
was with God, and the Code was God.
(How does shape know from name to draw itself?)
Clear/ clarity/ clearing/ open/ light/ free

Was with God, and the Code was God.
(Because God is in the function calls and the names.)
Clear/ clarity/ clearing/ open/ light/ free
(Booleans/ binary/ base16/ pixels/ objects/ lists)

(Because God is in the function calls and the names.)
The same was in the beginning with the Code. All things
(Booleans/ binary/ base16/ pixels/ objects/ lists)
were made by Code.

The same was in the beginning with the Code. All things
In the beginning were the Code, and the Code
was made by Code.
(How does shape know from name to draw itself?)