Python Modules
# circle module
PI = 3.142
def area_of_a_circle(r):
"""
Function for computing the area of a circle
"""
area = PI * r ** 2
return area
# rectangle module
def area_of_a_retangle(l, b):
"""
Formula for computing the area of a rectangle
"""
return l * bWorking with module files and subdirectories
Last updated