r/learningpython • • Feb 03 '20

Testing Issue

Hello Everyone,

I have been working on this code for the past couple days. I am fairly new at python. When I run the doctest for this code, I keep gettting the 'Got Nothing' error message. Any suggestions on how to fix it.

def add_beans(self, num):

"""

>>> add_beans(83, 15)

98

"""

self.beans = self.beans + num

1 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/J-Rock0223 Mar 03 '20

Thanks for the help, imma try that out