Skip to content

Instantly share code, notes, and snippets.

@twyle
Last active May 29, 2022 07:57
Show Gist options
  • Save twyle/f95248cd14f15715745a930802cbaa40 to your computer and use it in GitHub Desktop.
Save twyle/f95248cd14f15715745a930802cbaa40 to your computer and use it in GitHub Desktop.
# -*- 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