I\'m having quite a hard time figuring out what\'s going wrong here:
class iterate(): def __init__(self): self.length=1 def iterated(self, n)
You should finish each elif branch with return self.iterated(...) rather than just self.iterated(...)
return self.iterated(...)
self.iterated(...)