Skip to content

Commit

Permalink
Update book.tex
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDowney authored Sep 19, 2017
1 parent 02e9602 commit f026fb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions book/book.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11839,13 +11839,13 @@ \section{Databases}
Photo of John Cleese doing a silly walk.
\end{verbatim}
%
Many dictionary methods, like {\tt keys} and {\tt items}, also
work with database objects. So does iteration with a {\tt for}
statement.
Some dictionary methods, like {\tt keys}, also
work with database objects, so you can iterate through the database
like this:
\index{dictionary methods!anydbm module}

\begin{verbatim}
for key in db:
for key in db.keys():
print key
\end{verbatim}
%
Expand Down

0 comments on commit f026fb2

Please sign in to comment.