From 0102b6e2bcdb72874f421c1e0dd270a19331bdb2 Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Thu, 7 Oct 2010 14:25:44 +0530 Subject: Converted the embellishing_a_plot to new template form --- embellishing_a_plot/quickref.tex | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 embellishing_a_plot/quickref.tex (limited to 'embellishing_a_plot/quickref.tex') 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|} -- cgit