@@ -35,20 +35,40 @@ def _add_1_to_value(initial_value):
3535 return final_value
3636
3737# This is the main math Class
38- class math_function_class :
39- """Add 1 to to any value.
38+ class MathFunctionClass :
39+ """Math class stores attributes/values and performs other functions.
4040
41- This function adds 1 to the entered value.
41+ This class stores the initial two (2) values, and also
42+ the initial two (2) values added and multiplied together.
43+ Additionally, it has a function that adds one(1) to each
44+ of the initial two (2) values and multiplies them together.
4245
4346 Parameters
4447 ----------
4548 initial_value: int or float
4649 The first integer or float that 1 will be added to.
47-
48- Returns
50+
51+ Attributes
52+ ----------
53+ value_0: float or int
54+ The first initial value entered in this class, which
55+ will be used in the math operations.
56+ value_1: float or int
57+ The second initial value entered in this class, which
58+ will be used in the math operations.
59+ added_numbers: float or int
60+ The first and second initial values added together.
61+ multiplied_numbers: float or int
62+ The first and second initial values multiplied together.
63+
64+ Methods
4965 -------
50- final_value: int or float
51- The initial value plus 1.
66+ def __init__(self, value_0, value_1):
67+ MathFunctionClass Class Constructor to initializes the object.
68+
69+ def add_1_to_both_numbers_and_multiply(self): int or float
70+ This function adds 1 to each of value_0 and value_1
71+ and multiplies them together.
5272 """
5373 def __init__ (
5474 self ,
@@ -58,13 +78,13 @@ def __init__(
5878
5979 if not isinstance (value_0 , (int , float )):
6080 raise TypeError (
61- f"ERROR: In the 'math_function_class ' class, the { 'value_0' } "
81+ f"ERROR: In the 'MathFunctionClass ' class, the { 'value_0' } "
6282 f"is a { type (value_0 )} and not a int or float."
6383 )
6484
6585 if not isinstance (value_1 , (int , float )):
6686 raise TypeError (
67- f"ERROR: In the 'math_function_class ' class, the { 'value_1' } "
87+ f"ERROR: In the 'MathFunctionClass ' class, the { 'value_1' } "
6888 f"is a { type (value_1 )} and not a int or float."
6989 )
7090
@@ -77,12 +97,14 @@ def __init__(
7797 def add_1_to_both_numbers_and_multiply (self ):
7898 """Add 1 to both value_0 and value_1 and multiply them together.
7999
80- This function adds 1 to each of value_0 and value_1 and multiplies them together.
100+ This function adds 1 to each of value_0 and value_1
101+ and multiplies them together.
81102
82103 Returns
83104 -------
84105 add_1_to_both_numbers_and_multiply: int or float
85- This function adds 1 to each of value_0 and value_1 and multiplies them together.
106+ This function adds 1 to each of value_0 and value_1
107+ and multiplies them together.
86108 """
87109
88110 add_1_to_to_each_value_and_mulitipy = _add_1_to_value (self .value_0 ) * _add_1_to_value (self .value_1 )
0 commit comments