functions docstring the content between the 'is known as 'docstring'which are displayed by the 'helpfunction as shown below press 'qto exit from help-screen def add num(xy)''add two numbers xy ''print( +yadd num( help(add numhelp on function add num in module __main__add num(xyadd two numbers xy types of docstring there are two standard format of creating the docstringsi numpy style and goole stylewhich are supported by sphinx-documentation for generating the auto-documentation of the project convert previous code into function conversion nowwe will convert the code in listing into function conversion process is quite simpleas shown in listing where function with docstring is defined at lines - ther previous code is indented and finally return statement is added in line lines - calls the function and print the output lastlylines - are the standard boilerplate to set the function 'mainas the entry point listing price calculation using function price py import csv def ring_cost(filename)(continues on next page