File tree 1 file changed +2
-27
lines changed
1 file changed +2
-27
lines changed Original file line number Diff line number Diff line change 33
33
\title{Think Python}
34
34
\author{Allen B. Downey}
35
35
\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}{}
38
38
39
39
% these styles get translated in CSS for the HTML version
40
40
\newstyle{a:link}{color:black;}
@@ -1540,31 +1540,6 @@ \section{Variables}
1540
1540
<type 'float'>
1541
1541
\end{verbatim}
1542
1542
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
-
1568
1543
1569
1544
1570
1545
\section{Variable names and keywords}
You can’t perform that action at this time.
0 commit comments