embellishing_a_plot/quickref.tex
changeset 235 80e4016d747a
child 328 9ab73cbdd5a8
equal deleted inserted replaced
234:2b88724a7ee0 235:80e4016d747a
       
     1 Creating a tuple:\\
       
     2 {\ex \lstinline|    t = (1, "hello", 2.5)|}
       
     3 
       
     4 Accessing elements of tuples:\\
       
     5 {\ex \lstinline|    t[index] Ex: t[2]|}
       
     6 
       
     7 Accessing slices of tuples:\\
       
     8 {\ex \lstinline|    t[start:stop:step]|}
       
     9 
       
    10 Swapping values:\\
       
    11 {\ex \lstinline|    a, b = b, a|}