Commit 84d4ca10 authored by Roberts Ivanovs's avatar Roberts Ivanovs
Browse files

Bugfix in data validation

By default the user input is a string variable. It needs to be
converted to an int
parent f14dcb59
......@@ -24,7 +24,7 @@ def generate_matrix(default=None):
f"\nCurrent values are: {matrix[i][j]} {matrix[j][i]}.",
"To continue, enter a new value:"
)
new_distance = input()
new_distance = int(input())
else:
new_distance = default
matrix[i][j] = new_distance
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment