On Thu, Apr 1, 2010 at 10:06 PM, albert steine <albert.ste...@live.se> wrote: > MY OPERATING SYSTEM IS > WINDOWS VISTA HOME > I HAVE INSTALLED PYTHON 2.6.4 > WHEN I USE THE KEYWORDS else or elif in any > programm it results to > Syntax Error-invalid Syntax have any answer? > thank-you >
Are you placing a colon (":") after each "else" and "elif ..."? Are you making sure that the indentation of the "else" and "elif" are the same as for the "if" statement, while indenting the inner code block further? Finally, this mailing list is for discussing issues specific to IDLE. General Python questions, like your question, should be posting on the comp.lang.python newsgroup (easy via Google Groups) or perhaps Python IRC channels. Good luck! - Tal _______________________________________________ IDLE-dev mailing list IDLE-dev@python.org http://mail.python.org/mailman/listinfo/idle-dev