Hide


#1



Hide...


Can someone, please, just paste a correct code...I can't get it right...
error : Oops, try again. Your random_row function should take exactly one parameter.


def random_row(board):
    return randint(0, len(board -1))
def random_col(board):
    return randint(0, len(board -1)) 
random_row(board)
random_col(board)


#2

@marcelsk811 .

Check the positions of the closing parentheses in your two return statements.

As it is now, your code is attempting to subtract 1 from the board variable instead of from len(board).


#3

That did it, thank you very much!


#4