https://365datascience.com/dwqa-answer/answer-for-error-in-tensorflow_audiobooks_machine_learning_homework/ -
Hi Ligia,
The error states ‘instance has no next() method’.
The point is that in Python 2 and Python 3, classes and methods are defined in different ways. You can read more about that here: https://portingguide.readthedocs.io/en/latest/classes.html
If I remember correctly, to make it work, you needed to place double underscore before and after a method. So when you define
def next()
you should write:
def __next__()
instead.
Iliya
#365datascience #DataScience #data #science #365datascience #BigData #tutorial #infographic #career #salary #education #howto #scientist #engineer #course #engineer #MachineLearning #machine #learning #certificate #udemy
No comments:
Post a Comment