Classify direct dictionary iteration for data = dict(b=2, a=1) and for key in data. Which statements are true? Select all that apply.
Explanation
Direct iteration supplies the dictionary's keys, and their traversal follows insertion order, so b precedes a here. Values require an explicit values view, while key-value pairs require an items view; neither is produced by this loop header.