Skip to content

Commit f026fb2

Browse files
authored
Update book.tex
1 parent 02e9602 commit f026fb2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

book/book.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11839,13 +11839,13 @@ \section{Databases}
1183911839
Photo of John Cleese doing a silly walk.
1184011840
\end{verbatim}
1184111841
%
11842-
Many dictionary methods, like {\tt keys} and {\tt items}, also
11843-
work with database objects. So does iteration with a {\tt for}
11844-
statement.
11842+
Some dictionary methods, like {\tt keys}, also
11843+
work with database objects, so you can iterate through the database
11844+
like this:
1184511845
\index{dictionary methods!anydbm module}
1184611846

1184711847
\begin{verbatim}
11848-
for key in db:
11848+
for key in db.keys():
1184911849
print key
1185011850
\end{verbatim}
1185111851
%

0 commit comments

Comments
 (0)