Looks like no one added any tags here yet for you.
What method can be called on a list to add an item?
.append()
Which datatype is accessed with the .items() method?
dict
What characteristic means that elements can be changed in a datatype?
Mutable
Are tuples indexed?
YES
Which datatype is known to be ordered?
List
What method counts the occurrences of an item in a tuple?
.count(item)
What will myList[0] return if myList = [1,2,3]?
1
Are dictionary keys mutable?
NO
How do you access a value in a dictionary?
By using the key, e.g., myDict[key]
What method can be called on a string to remove whitespace?
.strip(chars)
What does the .split() method do in Python?
Splits a string into a list based on a separator.
What will be the return value of sorted() when a list is passed?
A sorted list without modifying the original.
How do you check if an item is in a list?
Using the 'in' keyword.
What is the primary way to add an item to a list?
.append()
What is the output of the statement myList.reverse()?
None; it modifies the original list.
What occurs if you attempt to call index on a value not found in a list?
An error is thrown.
Are dictionary values mutable?
YES
What does tuple unpacking allow you to do?
Assign variables to values directly from a tuple.
What will 'del myList[0]' do?
Delete the first element of myList.
What does the random module's .random() function return?
A random float between [0,1).
Which method returns the index of an item in a tuple?
.index(item)
What happens in tuple packing?
Values are packed into the tuple.
How are dictionaries used to count letter occurrences?
By incrementing the count for each letter in a looping structure.
What is the significance of using the import statement before a module?
It allows access to the functions and variables defined in that module.
What happens when you try to add duplicate keys to a dictionary?
Only the last assignment to the key will be kept.
What is unique about the elements in a dictionary?
Keys must be unique.
What is a key characteristic of lists in Python?
They are mutable.
What will myTuple[0] return if myTuple = (1,2,3)?
1
What does the range function return?
A sequence of numbers in a specified range.
To mutate items in a tuple, what must be done?
You must create a new tuple.
What is the purpose of the .replace() method in strings?
To return a new string with specified substrings replaced.
What are the characteristics of a dictionary?
Keys are unique and values can be mutable.
How to check if two items are identical?
Use '==' operator.