parsing_data/quickref.tex
changeset 252 0ff3f1a97068
parent 238 c507e9c413c6
child 331 e3136f576acb
equal deleted inserted replaced
251:9bc78792904b 252:0ff3f1a97068
       
     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|}