test_cicd / calculator.py
rassulya's picture
Update main execution message in calculator.py
143cf78
raw
history blame contribute delete
560 Bytes
def add(a, b):
"""Add two numbers and return the result."""
return a + b
def subtract(a, b):
"""Subtract b from a and return the result."""
return a - b
def multiply(a, b):
"""Multiply two numbers and return the result."""
return a * b
def divide(a, b):
"""Divide a by b and return the result."""
if b == 0:
raise ValueError("Cannot divide by zero")
return a / b
def is_even(number):
"""Check if a number is even."""
return number % 2 == 0
if __name__ == "__main__":
print("Without Alexandr's name")