File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 44"""
55
66# Should this function even be here?
7- def poorly_implemented_function_with_no_close_parenthesis (
7+ def poorly_implemented_function_with_no_close_parenthesis ():
88
99def addition (x : int , y : int ) -> int :
1010 """
1111 Adds two numbers.
1212
13- Note: `* ` is the multiplication operator in Python.
13+ Note: `+ ` is the addition operator in Python.
1414
1515 Args:
1616 x (int): The first parameter.
17- y (str ): The second parameter.
17+ y (int ): The second parameter.
1818
1919 Returns:
2020 int: The sum of `x` and `y`.
2121 """
22- return x * y
22+ return x + y
2323
2424def multiplication (x : int , y : int ) -> int :
2525 """
2626 Multiplies two numbers.
2727
28- Note: `+ ` is the addition operator in Python.
28+ Note: `* ` is the multiplication operator in Python.
2929
3030 Args:
3131 x (int): The first parameter.
32- y (str ): The second parameter.
32+ y (int ): The second parameter.
3333
3434 Returns:
3535 int: The multiple of `x` and `y`.
3636 """
37- return x + y
37+ return x * y
3838
3939def division (x : int , y : int ) -> int :
4040 """
@@ -44,9 +44,9 @@ def division(x: int, y: int) -> int:
4444
4545 Args:
4646 x (int): The first parameter.
47- y (str ): The second parameter.
47+ y (int ): The second parameter.
4848
4949 Returns:
5050 int: `x` divided by `y`.
5151 """
52- return x // y
52+ return x // y
You can’t perform that action at this time.
0 commit comments