summaryrefslogtreecommitdiff
path: root/additional_ipython/quickref.tex
diff options
context:
space:
mode:
authorNishanth Amuluru2010-10-07 14:21:53 +0530
committerNishanth Amuluru2010-10-07 14:21:53 +0530
commitbb2835e18bf5c60368e1cf32b86348e1363a72e3 (patch)
tree97b2d6bf05fadbbc41c85a9711f0f2b4425947f4 /additional_ipython/quickref.tex
parent0ecb6713ccb7702c278d3db111f043b9b401eb5e (diff)
downloadst-scripts-bb2835e18bf5c60368e1cf32b86348e1363a72e3.tar.gz
st-scripts-bb2835e18bf5c60368e1cf32b86348e1363a72e3.tar.bz2
st-scripts-bb2835e18bf5c60368e1cf32b86348e1363a72e3.zip
Converted the additional_ipython script into new template form
Diffstat (limited to 'additional_ipython/quickref.tex')
-rw-r--r--additional_ipython/quickref.tex11
1 files changed, 11 insertions, 0 deletions
diff --git a/additional_ipython/quickref.tex b/additional_ipython/quickref.tex
new file mode 100644
index 0000000..a0212b3
--- /dev/null
+++ b/additional_ipython/quickref.tex
@@ -0,0 +1,11 @@
+Creating a tuple:\\
+{\ex \lstinline| t = (1, "hello", 2.5)|}
+
+Accessing elements of tuples:\\
+{\ex \lstinline| t[index] Ex: t[2]|}
+
+Accessing slices of tuples:\\
+{\ex \lstinline| t[start:stop:step]|}
+
+Swapping values:\\
+{\ex \lstinline| a, b = b, a|}