Answer:
def script_input():
chances = 2
while chances > 0:
global rows
global columns
global constant
rows = int(input("Enter the number of rows: "))
columns = int(input("Enter the number of columns: "))
constant = int(input("Enter the constant: "))
if rows > 0 and rows <= 8 and columns > 0 and columns <= 8 and \
isinstance(constant, int):
chances -= 2
else:
chances -= 1
script_input()
print(f"{rows} rows, {columns} columns, value of {constant}")
Step-by-step explanation:
The python script defines a function that gets the user input of row, column and constant value variables, then the script prints out the number of rows and columns for the matrix to be created.