summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burns2010-06-27 20:23:10 -0500
committerChristopher Burns2010-06-27 20:23:10 -0500
commit941b0d6900fb7a9cbc9c75c87c4807fbabbb0c83 (patch)
tree0d1688beeaed96b5050a6b5348c79d80775ab873
parent2246b4f9af4843cda97898b960ed4c9cd1136052 (diff)
downloadworkshops-more-scipy-941b0d6900fb7a9cbc9c75c87c4807fbabbb0c83.tar.gz
workshops-more-scipy-941b0d6900fb7a9cbc9c75c87c4807fbabbb0c83.tar.bz2
workshops-more-scipy-941b0d6900fb7a9cbc9c75c87c4807fbabbb0c83.zip
REF: simplify example of printing list in reverse.
--HG-- branch : scipy2010
-rw-r--r--day2/session2.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/day2/session2.tex b/day2/session2.tex
index 8bcc890..debf7b1 100644
--- a/day2/session2.tex
+++ b/day2/session2.tex
@@ -286,7 +286,7 @@ Out[]: [2, 4]
In []: a[::2]
Out[]: [1, 3, 5]
-In []: a[-1::-1]
+In []: a[::-1]
Out[]: [5, 4, 3, 2, 1]
\end{lstlisting}
\end{frame}