summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burns2010-06-27 20:23:10 -0500
committerChristopher Burns2010-06-27 20:23:10 -0500
commit44f6e20241f31fd561a24c4f28850331a92e38ae (patch)
tree0d1688beeaed96b5050a6b5348c79d80775ab873
parent639a16e6bee7ea1a9dc668c8611ca16ff2e18cf2 (diff)
downloadworkshops-44f6e20241f31fd561a24c4f28850331a92e38ae.tar.gz
workshops-44f6e20241f31fd561a24c4f28850331a92e38ae.tar.bz2
workshops-44f6e20241f31fd561a24c4f28850331a92e38ae.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}