Solved

The Code for the __Iter__ Method Is Shown Below

Question 19

Multiple Choice

The code for the __iter__ method is shown below. What is the missing code?
Def __iter__(self) :
< missing code >
While cursor < len(self) :
Yield self.items[cursor]
Cursor += 1


A) cursor = 0
B) cursor = 1
C) cursor = self.size
D) cursor = len(self)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions