You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this function, we don't want to set the rating variable to None because we want to ensure that the rating for the book is kept as the User input it. If we set the rating as None then we will not be able to capture what the User has rated the book they read. So, to capture each rating as input by the User, we should just remove that line and have the function become:
Now the self.books dictionary will begin holding all the ratings as input by the user.
P.S. The function as it is will actually error out because none is not defined as a keyword in Python. In Python, a "none object" must is spelled with a capital "N" -> None.
The text was updated successfully, but these errors were encountered:
pwp-capstones/TomeRater/TomeRater.py
Lines 21 to 23 in bde75d2
For this function, we don't want to set the
rating
variable toNone
because we want to ensure that therating
for the book is kept as the User input it. If we set the rating asNone
then we will not be able to capture what the User has rated the book they read. So, to capture each rating as input by the User, we should just remove that line and have the function become:Now the
self.books
dictionary will begin holding all the ratings as input by the user.P.S. The function as it is will actually error out because
none
is not defined as a keyword in Python. In Python, a "none object" must is spelled with a capital "N" ->None
.The text was updated successfully, but these errors were encountered: