Week-5 Python Lab Programs
Week-5 Python Lab Programs
Geometry.py
# a module using different geometrical shapes and operations on them as its functions.
def geometrical_shapes(name):
# function calling
geometrical_shapes(shape_name)
3. Use the structure of exception handling all general purpose exceptions.
# Use the structure of exception handling all general purpose exceptions.
try:
if operation == "*":
else:
match error:
case RuntimeError():
case ValueError():
case ZeroDivisionError():
else: