-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.py
41 lines (34 loc) · 980 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""
This is our main python script file. This defines our functions and runs the code. Nothing fancy!
"""
def example_add(num_1: int | float, num_2: int | float) -> int | float:
"""
Adds two numbers together.
Parameters
----------
num_1 : int | float
First number you want to add together.
num_2 : int | float
Second number you want to add together
Returns
-------
int | float
Sum of num_1 and num_2
"""
return num_1 + num_2
# TODO - Implement function and tests
# def example_bad_add(num_1: int | float, num_2: int | float) -> int | float:
# """
# Badly adds two numbers together.
# Parameters
# ----------
# num_1 : int | float
# First number you want to add together.
# num_2 : int | float
# Second number you want to add together
# Returns
# -------
# int | float
# Sum of num_1 and num_2... and + 1
# """
# return num_1 + num_2 + 1