Solved

In the Code for the __Iter__ Method for the ArrayDict

Question 2

Multiple Choice

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
< missing code >


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

Correct Answer:

verifed

Verified

Related Questions