Last active
May 29, 2022 07:57
-
-
Save twyle/f95248cd14f15715745a930802cbaa40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""This module creates three functions to be tested.""" | |
def add(x: int, y: int) -> int: | |
"""Add two numbers together. | |
Args: | |
x (int): first number to add | |
y (int): second number to add | |
Returns: | |
int: sum of x and y | |
""" | |
return x + y | |
def subtract(x: int, y: int) -> int: | |
"""Subtract one number from another. | |
Args: | |
x (int): first number to subtract | |
y (int): second number to subtract | |
Returns: | |
int: resut of x subtract y | |
""" | |
return x - y | |
def multiply(x: int, y: int) -> int: | |
"""Multiply two numbers together. | |
Args: | |
x (int): first number in the multiplication | |
y (int): second number in the multiplication | |
Returns: | |
int: product of x and y | |
""" | |
return x * y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment