def cube_volume(side_length):
''' Compute the volume of a cube
Parameter: side_length is side length of cube
returns: volume
'''
volume = side_length ** 3
return volumeDocstrings
- The PEP8 standard requires docstrings for functions, describing what the function does.
- This comment should appear after the
defline - The
'''that ends a multiline docstring should be on a line by itself - These docstrings can be accessed in many IDEs, facilitating development
- This comment should appear after the
Using docstrings in development
