Skip to content

Commit 35774f6

Browse files
Update linear_algebra/src/polynom_for_points.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 38ac4c0 commit 35774f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linear_algebra/src/polynom_for_points.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def points_to_polynomial(coordinates: list[list[int]]) -> str:
3232

3333
set_x = {x for x, _ in coordinates}
3434
if len(set_x) == 1:
35-
return "x=" + str(coordinates[0][0])
35+
return f"x={coordinates[0][0]}"
3636

3737
if len(set_x) != len(coordinates):
3838
return "The program cannot work out a fitting polynomial."

0 commit comments

Comments
 (0)