author | Nishanth <nishanth@fossee.in> |
Sun, 10 Oct 2010 15:49:44 +0530 | |
changeset 293 | ca701f1ef7fb |
parent 235 | 80e4016d747a |
child 328 | 9ab73cbdd5a8 |
permissions | -rw-r--r-- |
235
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
1 |
Creating a tuple:\\ |
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
2 |
{\ex \lstinline| t = (1, "hello", 2.5)|} |
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
3 |
|
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
4 |
Accessing elements of tuples:\\ |
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
5 |
{\ex \lstinline| t[index] Ex: t[2]|} |
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
6 |
|
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
7 |
Accessing slices of tuples:\\ |
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
8 |
{\ex \lstinline| t[start:stop:step]|} |
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
9 |
|
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
10 |
Swapping values:\\ |
80e4016d747a
Converted the embellishing_a_plot to new template form
Nishanth <nishanth@fossee.in>
parents:
diff
changeset
|
11 |
{\ex \lstinline| a, b = b, a|} |