Skip to content

Commit 5397955

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent ea1a83a commit 5397955

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Diff for: arithmetic_analysis/newton_method.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88

99
# function is the f(x) and derivative is the f'(x)
10-
def newton(function: RealFunc, derivative: RealFunc, starting_int: int,) -> float:
10+
def newton(
11+
function: RealFunc,
12+
derivative: RealFunc,
13+
starting_int: int,
14+
) -> float:
1115
"""
1216
>>> newton(lambda x: x ** 3 - 2 * x - 5, lambda x: 3 * x ** 2 - 2, 3)
1317
2.0945514815423474

Diff for: matrix/matrix_operation.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def main():
168168
matrix_c = [[11, 12, 13, 14], [21, 22, 23, 24], [31, 32, 33, 34], [41, 42, 43, 44]]
169169
matrix_d = [[3, 0, 2], [2, 0, -2], [0, 1, 1]]
170170
print(f"Add Operation, {add(matrix_a, matrix_b) = } \n")
171-
print(f"Multiply Operation, {multiply(matrix_a, matrix_b) = } \n",)
171+
print(
172+
f"Multiply Operation, {multiply(matrix_a, matrix_b) = } \n",
173+
)
172174
print(f"Identity: {identity(5)}\n")
173175
print(f"Minor of {matrix_c} = {minor(matrix_c, 1, 2)} \n")
174176
print(f"Determinant of {matrix_b} = {determinant(matrix_b)} \n")

Diff for: strings/can_string_be_rearranged_as_palindrome.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
# Counter is faster for long strings and non-Counter is faster for short strings.
99

1010

11-
def can_string_be_rearranged_as_palindrome_counter(input_str: str = "",) -> bool:
11+
def can_string_be_rearranged_as_palindrome_counter(
12+
input_str: str = "",
13+
) -> bool:
1214
"""
1315
A Palindrome is a String that reads the same forward as it does backwards.
1416
Examples of Palindromes mom, dad, malayalam

0 commit comments

Comments
 (0)