COMP Flashcards
counts the number of occurrences of an item in a tuple
count
_____ uses parentheses()
tuple
_____ uses curly brackets{}
set
it holds key:value pair
dictionary
used to store data values like a map
dictionary
an ordered collection of python objects, and it is immutable
tuple
arithmetic operator that returns the remainder of the division
modulus %
modifying set that is used to add single element
add()
an unordered collection of data type that is iterable, mutable, and has no duplicate elements
set
unordered collection of data values
dictionary
it returns the length of a tuple
len
modifying set that is used to add multiple elements
update()
modifying set that is used to remove all items in a set
clear()
sort the elements in ascending order
sorted
it returns the total of a num
sum