REF: simplify example of printing list in reverse. scipy2010
authorChristopher Burns <chris.d.burns@gmail.com>
Sun, 27 Jun 2010 20:23:10 -0500
branchscipy2010
changeset 424 2ab009c9f80a
parent 423 11c942a85b3f
child 425 5afcfce15e71
REF: simplify example of printing list in reverse.
day2/session2.tex
--- a/day2/session2.tex	Sun Jun 27 15:16:54 2010 -0500
+++ b/day2/session2.tex	Sun Jun 27 20:23:10 2010 -0500
@@ -286,7 +286,7 @@
 In []: a[::2]
 Out[]: [1, 3, 5]
 
-In []: a[-1::-1]
+In []: a[::-1]
 Out[]: [5, 4, 3, 2, 1]
 \end{lstlisting}
 \end{frame}