Row versus column values

This is for exercise 7 and 8:

When defining the random row and random column functions, does the computer determine if one is horizontal and the other is vertical?
After defining them, the next exercise adds the zero index to the column function

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

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

Does that have any effect?

You can generally assume the computer does nothing at all that you didn’t write in your code.
Whether you consider some collection of data to be horizontal or vertical isn’t… something the computer is in any way aware of. It’s up to you to put things in some structure where you can get it back out in some way that makes sense to you.

If something should happen you have to make it so yourself.