.insert(), Inserts an element at a given position, .pop(), Removes element based on its index, .remove(), Removes the stated element, .count(), Counts how many times a given term appears in the list, len(), Returns the length of the list, print(my_list[2:]), Used to output from a specified index to the end of the list, .index(), Returns the specified item's index, .sort(), Puts the list into order, .reverse(), Reverses the current order of the list, print(my_list[:6]), Used to output from the beginning of the list up to, but not including, a specified index.

Python List Operations

Top-lista

Vizualni stil

Postavke

Promijeni predložak

Vrati automatski spremljeno: ?