<list>.insert(<int>, <el>) # Inserts item at index and moves the rest to the right. <el> = <list>.pop([<int>]) # Returns and removes item at index or from the end. <int> = <list>.count(<el>) # Returns number of occurrences. Also works on strings. <int> = <list>.index(<el>) # Returns index of the first occurrence or raises ValueError. <list>.remove(<el>) # Removes first occurrence of the item or raises ValueError. <list>.clear() # Removes all items. Also works on dictionary and set.
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter