python data structures cheat sheet

Python Data Structures Cheat Sheet

count() : count the number of occurrences of a specific element in a list len() :

append() : used to add an element to the end of a list. extend() : used to add multiple elements to a list. insert() : used to insert an element.

list_name.insert(index, element)