We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 652b923 commit ec29f98Copy full SHA for ec29f98
exercises/044-static_methods/solution.hide.py
@@ -6,6 +6,7 @@ class MathOperations:
6
def add_numbers(num1, num2):
7
return num1 + num2
8
9
+# You can call the static method without creating an instance
10
sum_of_numbers = MathOperations.add_numbers(10, 15)
11
12
print(f"Sum of Numbers: {sum_of_numbers}")
0 commit comments