Python Write Better Python Cleaner Code Docstrings

doc strings

how do i fix it

starter.py
class Treehouse:
    def student(self, name):
        '''
         Gives a pleasant message about the student.
        '''
        return '{} is a great Treehouse student!' .format(name)

1 Answer

Steven Parker
Steven Parker
205,347 Points

Try putting it on one line:

        '''Gives a pleasant message about the student.'''

thanks Steven it worked

Steven Parker
Steven Parker
205,347 Points

Dennis Dumbreni — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!