summaryrefslogtreecommitdiff
path: root/writing_python_scripts/quickref.tex
diff options
context:
space:
mode:
authorNishanth Amuluru2010-10-11 13:41:01 +0530
committerNishanth Amuluru2010-10-11 13:41:01 +0530
commit054ed1a86beff71899419fba6cba54c61536e417 (patch)
tree350da12e886cf507e475f3daef798d04239dcd5a /writing_python_scripts/quickref.tex
parent088a6dd537967e36a84f518a527c8392384f0d40 (diff)
downloadst-scripts-054ed1a86beff71899419fba6cba54c61536e417.tar.gz
st-scripts-054ed1a86beff71899419fba6cba54c61536e417.tar.bz2
st-scripts-054ed1a86beff71899419fba6cba54c61536e417.zip
made the script writing_python_scripts into new form
Diffstat (limited to 'writing_python_scripts/quickref.tex')
-rw-r--r--writing_python_scripts/quickref.tex11
1 files changed, 11 insertions, 0 deletions
diff --git a/writing_python_scripts/quickref.tex b/writing_python_scripts/quickref.tex
new file mode 100644
index 0000000..a0212b3
--- /dev/null
+++ b/writing_python_scripts/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|}