Traceback (most recent call last):
File "c:\Users\ukv-208\Downloads\prac\python\oops.py", line 8, in <module>
print(number.__next__())
^^^^^^^^^^^^^^^^^
StopIteration
Solution:- generators me item nahi hai ki usko iterate kar sakte matlab item finish or us key exist nahi hai
Thanks you for commenting your questions. I will see question and respond you.