Check your understanding of the primer: iterating by index, iterating over strings, and iterating over files.
Why is creating a new list preferred over mutating the original one?
Select one answer, then check.
enumerate works fine on a list you are mutating; that is not the primer's reason.Which of the following statements is true about iterating over a string in Python?
Select one answer, then check.
.split().split works on any string; without an argument it splits on whitespace, and you can pass any character to split on, not only a comma.for loop over a string already works, character by character; split is only needed to iterate over chunks instead.Which of the following is NOT true about file iteration?
Select one answer, then check.
for line in grade_file.