: On 7 June 2013 14:52, Νικόλαος Κούρας <nikos.gr...@gmail.com> wrote: File "/home/nikos/public_html/cgi-bin/files.py", line 81 > [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173] if( flag == > 'greek' ) > [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173] > ^ > [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173] SyntaxError: > invalid syntax > [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173] Premature end of > script headers: files.py > ------------------------------- > i dont know why that if statement errors.
Oh for f... READ SOME DOCUMENTATION, FOR THE LOVE OF BOB!!! READ YOUR OWN EFFING CODE! Look at this: http://docs.python.org/2/tutorial/controlflow.html Read it now? Of course not. Go away and read it. Now have you read it? GO AND READ IT. What does an if statement end with? Hint: yep, that's it. -[]z. -- http://mail.python.org/mailman/listinfo/python-list