Correct the mistakes

Report a typo

Your friend has written a little module which they want to document. Here's their code:

class Ship():
    """ Class description """
    """ Module description """

    def __init__(self, name, capacity):
        # __init__ description
        self.name = name
        self.capacity = capacity

    def info(self):
        """ info description """
        print('The name of the ship is', self.name, 'it can take', self.capacity, 'aboard.') 

They ask you to check it and you see at once that there are some mistakes. What should you do to correct them?

Select one or more options from the list
___

Create a free account to access the full topic