1 class Infinit: 2 DEF __iter__ (Self): 3 return Self 4 5 DEF __next__ (Self): 6 return None 7 8 for i in Infinit (): 9 Print ( " good What ho, you are not learned for unlimited loop! " )
1 class Infinit: 2 DEF __iter__ (Self): 3 return Self 4 5 DEF __next__ (Self): 6 return None 7 8 for i in Infinit (): 9 Print ( " good What ho, you are not learned for unlimited loop! " )