I’m struggling with this specific problem since the print statement print(f"Move to square {column}{row}")
is tethered to
column = get_column
row = get_row
Can someone help me understand if this is an issue with the problem on the site or is there something I’m missing?
Here is the text for the problem
Organize the code blocks so that:
- get_column() throws a ValueError if column is not between “a” and “h”, both inclusive.
- get_row() throws a ValueError if row is not between 1 and 8, both inclusive.
- the try block gets the values of column and row and outputs the move.
- the except block outputs the argument passed by a raise statement.
When I submit my solution I get this error - What I have set in bold is the issue I’m trying to overcome.
Output differs. See highlights below. Special character legend
Input
b 0
Your output
Move to square b0
Row must be between 1 and 8
Expected output
Row must be between 1 and 8