Module 1: calculations.py
# calculations.py
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def multiply(x, y):
return x * y
def divide(x, y):
if y != 0:
return x / y
else:
return "Error: Division by zero is not allowed."
Main Program: main.py
import calculations
import greetings
import squares
print(calculations.add(10, 5)) # Output: 15
print(calculations.subtract(10, 5)) # Output: 5
print(calculations.multiply(10, 5)) # Output: 50
print(calculations.divide(10, 5)) # Output: 2.0
print(greetings.greet("Alice")) # Output: Hello, Alice!
print(squares.square(5)) # Output: 25