@@ -1961,7 +1961,7 @@ \section{Function calls}
19611961
19621962\section {Math functions }
19631963\index {math function}
1964- \index {function, math}
1964+ \index {function! math}
19651965
19661966Python has a math module that provides most of the familiar
19671967mathematical functions. A {\bf module} is a file that contains a
@@ -2007,7 +2007,7 @@ \section{Math functions}
20072007\index {sine function}
20082008\index {radian}
20092009\index {trigonometric function}
2010- \index {function, trigonometric}
2010+ \index {function! trigonometric}
20112011
20122012The second example finds the sine of {\tt radians}. The variable name {\tt radians} is a hint that {\tt sin} and the other trigonometric
20132013functions ({\tt cos}, {\tt tan}, etc.) take arguments in radians. To
@@ -2028,7 +2028,7 @@ \section{Math functions}
20282028
20292029If you know
20302030trigonometry, you can check the previous result by comparing it to
2031- the square root of two divided by two:
2031+ the square root of two, divided by two:
20322032\index {sqrt function}
20332033\index {function!sqrt}
20342034
@@ -2454,8 +2454,8 @@ \section{Stack diagrams}
24542454\section {Fruitful functions and void functions }
24552455\index {fruitful function}
24562456\index {void function}
2457- \index {function, fruitful}
2458- \index {function, void}
2457+ \index {function! fruitful}
2458+ \index {function! void}
24592459
24602460Some of the functions we have used, such as the math functions, return
24612461results; for lack of a better name, I call them {\bf fruitful
@@ -2522,7 +2522,7 @@ \section{Fruitful functions and void functions}
25222522
25232523
25242524\section {Why functions? }
2525- \index {function, reasons for}
2525+ \index {function! reasons for}
25262526
25272527It may not be clear why it is worth the trouble to divide
25282528a program into functions. There are several reasons:
@@ -2990,7 +2990,7 @@ \section{Simple repetition}
29902990
29912991\section {Exercises }
29922992
2993- The following is a series of exercises using TurtleWorld . They
2993+ The following is a series of exercises using the { \tt turtle} module . They
29942994are meant to be fun, but they have a point, too. While you are
29952995working on them, think about what the point is.
29962996
@@ -4375,7 +4375,7 @@ \section{Exercises}
43754375
43764376The following exercises use the {\tt turtle} module, described in
43774377Chapter~\ref {turtlechap }:
4378- \index {TurtleWorld }
4378+ \index {turtle module }
43794379
43804380\begin {exercise }
43814381
@@ -4617,7 +4617,7 @@ \section{Incremental development}
46174617%
46184618I chose these values so that the horizontal distance is 3 and the
46194619vertical distance is 4; that way, the result is 5, the hypotenuse
4620- of a 3-4-5 triangle. When testing a function, it is
4620+ of a 3-4-5 right triangle. When testing a function, it is
46214621useful to know the right answer.
46224622\index {testing!knowing the answer}
46234623
@@ -7402,7 +7402,7 @@ \section{Lists are mutable}
74027402
74037403Figure~\ref {fig.liststate } shows
74047404the state diagram for {\tt
7405- cheeses}, {\tt numbers} and {\tt empty}:
7405+ cheeses}, {\tt numbers} and {\tt empty}.
74067406\index {state diagram}
74077407\index {diagram!state}
74087408
@@ -8472,7 +8472,7 @@ \section{Exercises}
84728472
84738473\begin {exercise }
84748474\index {append method}
8475- \index {method append}
8475+ \index {method! append}
84768476\index {list!concatenation}
84778477\index {concatenation!list}
84788478
@@ -9696,7 +9696,7 @@ \section{Tuples as return values}
96969696\index {tuple}
96979697\index {value!tuple}
96989698\index {return value!tuple}
9699- \index {function, tuple as return value}
9699+ \index {function! tuple as return value}
97009700
97019701Strictly speaking, a function can only return one value, but
97029702if the value is a tuple, the effect is the same as returning
0 commit comments