Source code for simple_calculator.simple_calculator
"""Main module."""
[docs]def add(a, b) -> int:
"""This function returns the result by adding two numbers
Args:
a (int): The first number
b (int): The second number
Returns:
int: Returns the result by adding both a and b
"""
return a+b
[docs]def subtract(a,b) -> int:
"""This function returns the result by subtracting two numbers
Args:
a (int): The first number
b (int): The second number
Returns:
int: Returns the result by subtracting b from a
"""
return a-b