A teacher stores quiz scores out of 10 in a Python nested list, with one inner list per study group. The program below creates a new nested list containing only scores of at least 6.
scores = [[4, 9, 2], [], [7, 5], [3, 5], [8]] selected = [] for row in scores: kept = [] for score in row: if score >= 6: kept.append(score) selected.append(kept)
After the program finishes, determine the number of inner lists in selected, the number of empty inner lists in selected, and the total number of retained scores across all its inner lists. Report each as an exact integer count.
Unlock full course notes by signing up
Follow dependent cell updates
A greenhouse program stores seedling counts in a multidimensional array represented by Python lists. It then applies three inventory corrections in the order shown.
Complete the table with the final counts at the specified locations after all three assignments execute. Enter exact integers.
Stop within each batch
A packing station records package masses in grams. Within each batch, zero marks the point where processing should stop; any later readings in that batch are ignored. The following Python program prints the number of packages processed from each batch.
Complete the table with the exact integer printed for each batch, in the order the batches appear.
Track shared rows after copying
A Python game represents a board as a multidimensional array using lists. The following code saves a copy, changes one cell, and replaces one row. Which statements are true after all statements execute? Select all that apply.