I made a class in Python to perform some basic operations.
class perform(object):
def add(self, first, second):
"""Adds two numbers
>>>perform().add(1, 2)
3
Also adds string
>>>perform().add('some', 'thing')
'something'
"""
return first+second
I don't understand why does the doctest failed for the add
function.