File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ # to make each cell add '# %%' to the above section
3+ # %%
4+ from github_tutorial .main_functions .main_functions import math_function_class
5+
6+ # %%
7+ # enter the two (2) values to use
8+ entered_value_0 = 100
9+ entered_value_1 = 2
10+
11+ # %%
12+ # set the math_function_class
13+ math_variable = math_function_class (entered_value_0 , entered_value_1 )
14+
15+ # %%
16+ # print the math_variable (i.e., math_function_class) and list its type
17+ print (f"\n " )
18+ print (f"math_variable = { math_variable } " )
19+ print (f"type(math_variable) = { type (math_variable )} \n " )
20+
21+ # %%
22+ # print the math_variable attribute added_number and list its type
23+ print (f"math_variable.added_numbers = { math_variable .added_numbers } " )
24+ print (f"type(math_variable.added_numbers) = { type (math_variable .added_numbers )} \n " )
25+
26+ # %%
27+ # print the math_variable attribute multiplied_numbers and list its type
28+ print (
29+ f"math_variable.multiplied_numbers = "
30+ f"{ math_variable .multiplied_numbers } "
31+ )
32+ print (
33+ f"type(math_variable.multiplied_numbers) = "
34+ f"{ type (math_variable .multiplied_numbers )} \n "
35+ )
36+
37+ # %%
38+ # print the math_variable running a function within the class (add_1_to_both_numbers_and_multiply()) and list its type
39+ print (
40+ f"math_variable.add_1_to_both_numbers_and_multiply() = "
41+ f"{ math_variable .add_1_to_both_numbers_and_multiply ()} "
42+ )
43+ print (
44+ f"type(math_variableadd_1_to_both_numbers_and_multiply()) = "
45+ f"{ type (math_variable .add_1_to_both_numbers_and_multiply ())} \n " )
46+ # %%
You can’t perform that action at this time.
0 commit comments