File tree Expand file tree Collapse file tree 1 file changed +2
-27
lines changed
Expand file tree Collapse file tree 1 file changed +2
-27
lines changed Original file line number Diff line number Diff line change 3333\title{Think Python}
3434\author{Allen B. Downey}
3535\newcommand{\thetitle}{Think Python: How to Think Like a Computer Scientist}
36- \newcommand{\theversion}{2.0.15 }
37- \newcommand{\thedate}{March 2015 }
36+ \newcommand{\theversion}{2.0.16 }
37+ \newcommand{\thedate}{}
3838
3939% these styles get translated in CSS for the HTML version
4040\newstyle{a:link}{color:black;}
@@ -1540,31 +1540,6 @@ \section{Variables}
15401540<type 'float'>
15411541\end{verbatim}
15421542
1543- \begin{exercise}
1544-
1545- If you type an integer with a leading zero, you might get
1546- a confusing error:
1547-
1548- \begin{verbatim}
1549- >>> zipcode = 02492
1550- ^
1551- SyntaxError: invalid token
1552- \end{verbatim}
1553-
1554- Other numbers seem to work, but the results are bizarre:
1555-
1556- \begin{verbatim}
1557- >>> zipcode = 02132
1558- >>> zipcode
1559- 1114
1560- \end{verbatim}
1561-
1562- Can you figure out what is going on? Hint: display the
1563- values {\tt 01}, {\tt 010}, {\tt 0100} and {\tt 01000}.
1564- \index{octal}
1565-
1566- \end{exercise}
1567-
15681543
15691544
15701545\section{Variable names and keywords}
You can’t perform that action at this time.
0 commit comments