author | Puneeth Chaganti <punchagan@fossee.in> |
Tue, 09 Nov 2010 16:14:58 +0530 | |
changeset 423 | 0f0f4993cffe |
parent 312 | 8cb703eee88d |
permissions | -rw-r--r-- |
Slicing \& Striding a list:\\ {\ex \lstinline| A[start:stop:step]|} \lstinline|stop| excluded Sorting a list:\\ {\ex \lstinline| sorted(A)|} -- returns new list {\ex \lstinline| A.sort()|} -- in-place sort Reversing a list:\\ {\ex \lstinline| A[::-1]|} -- returns new list {\ex \lstinline| A.reverse()|} -- in-place reverse