The add() method is used to insert an element into a data structure, such as a list or set.
Think of the add() method like adding a new friend to your social media network. You can use the add() method to include someone new in your circle.
remove(): This term refers to removing an element from a data structure.
size(): This term refers to finding the number of elements in a data structure.
contains(): This term refers to checking if an element is present in a data structure.
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.