Go to advanced search

by Mikachu
Wed Mar 26, 2014 2:14 pm
Forum: Python
Topic: Invalid Syntax?
Replies: 7
Views: 1724

Re: Invalid Syntax?

the ' at the end of 'Tic-Tac-Toe' is highlighted #!/usr/bin/env python # Tic-Tac-Toe 5 - 2 player game board = [ '1', '2', '3', '4', '5', '6', '7', '8', '9' ] wins = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6] ] def play() : printBoard() print 'Tic-Tac-To...
by Mikachu
Tue Mar 25, 2014 10:45 pm
Forum: Python
Topic: Invalid Syntax?
Replies: 7
Views: 1724

Invalid Syntax?

So I was coding a tic-tac-toe game in python, via a book: "Raspbery Pi Projects"

When I had finished, I ran it and it responded with "invalid syntax"
It highlighted the ' at the end of 'Tic-Tac-Toe'

Halp

Go to advanced search