<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">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|}
</pre></body></html>