Adding documentation strings
Documentation strings are added to provide more information on code that is intended to be imported and used in some other program or application. Documentation strings will provide the end user with information on the code that they are going to call from their programs. This is especially helpful as the end user of the code is not the developer of the library, but a user. Let’s look at an example of where to use documentation strings.
Let’s start by creating a Python file named vegcounter.py
and adding the following code:
def return_cart(*items):
    '''
    This function returns the list of items added to the cart.   Â
    items: input the cart items. Eg: 'pens', 'pencils'
    '''
    cart_items = []
    for i in items:
 ...