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