Define two new functions, random_row and random_col, that each take board as input. These functions should return a random row index and a random column index from your board, respectively. Use randint(0, len(board) - 1). Call each function on board.
from random import randint board =  for x in range(0, 5): board.append(["O"] * 5) def print_board(board): for row in board: print " ".join(row) # Add your code below! def random_row(board): randint(0, len(board) - 1) def random_col(board): randint(0, len(board) - 1) print(random_row(board)) print(random_col(board))
Oops, try again. It looks like your row bounds are not correct.
What the f**k is wrong with me or site or python or whatever? why i every time do exactly as saying in task and get piece of s**t in my face?