In the code for the __iter__ method for the ArrayDict class, what is the missing code?
def __iter__(self): cursor = 0 while cursor < len(self): yield self.items[cursor].key

A. return(self.items[cursor])
B. cursor -= 1
C. return(self.items[key])
D. cursor += 1

Answer: D

Computer Science & Information Technology

You might also like to view...

Most smartphones use operating systems developed by ________

A) Microsoft and Google B) Apple and Microsoft C) Symbian and Apple D) Google and Apple

Computer Science & Information Technology

In OpenOffice, all available clip art is displayed in the Gallery

Indicate whether the statement is true or false

Computer Science & Information Technology