summaryrefslogtreecommitdiff
path: root/embellishing_a_plot/quickref.tex
diff options
context:
space:
mode:
authorNishanth Amuluru2010-10-07 14:25:44 +0530
committerNishanth Amuluru2010-10-07 14:25:44 +0530
commit0102b6e2bcdb72874f421c1e0dd270a19331bdb2 (patch)
tree144ae5da432d7eef498fc46f09ba4abbed73fbf9 /embellishing_a_plot/quickref.tex
parentbb2835e18bf5c60368e1cf32b86348e1363a72e3 (diff)
downloadst-scripts-0102b6e2bcdb72874f421c1e0dd270a19331bdb2.tar.gz
st-scripts-0102b6e2bcdb72874f421c1e0dd270a19331bdb2.tar.bz2
st-scripts-0102b6e2bcdb72874f421c1e0dd270a19331bdb2.zip
Converted the embellishing_a_plot to new template form
Diffstat (limited to 'embellishing_a_plot/quickref.tex')
-rw-r--r--embellishing_a_plot/quickref.tex11
1 files changed, 11 insertions, 0 deletions
diff --git a/embellishing_a_plot/quickref.tex b/embellishing_a_plot/quickref.tex
new file mode 100644
index 0000000..a0212b3
--- /dev/null
+++ b/embellishing_a_plot/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|}