fork download
  1. board = []
  2. for i in range(0,5):
  3. board_list = ["o"] * 5
  4. board.append(board_list)
  5. print str(board).upper()
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.2/py_compile.py", line 119, in compile
    optimize=optimize)
  File "./prog.py", line 5
    print str(board).upper()
            ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.2/py_compile.py", line 123, in compile
    raise py_exc
py_compile.PyCompileError:   File "./prog.py", line 5
    print str(board).upper()
            ^
SyntaxError: invalid syntax

stdout
Standard output is empty