Hello, Several days ago I downloaded Python 3.2, the standard windows installer, for windows vista. Here's the bug: in the Python-command line, the following works: " >>>if 2==2:print('yes') . . . else:print('n') . . . yes " Now, in the Python shell (IDLE-python gui, the standard one included with the installer of python), the only way it works is: >>> if 2==2:print('yes') else:print('n') yes So, it requires me to put "else" unindented. On the other hand, if the "if--else" statement is included in the definition of a function, then it requires that "else" be exactly under "if". This was frustrating, when trying to learn "if-else" statement, because it took me half an hour of experimenting, before I figurred out. Shouldn't it be consistent? Could you please reply me with an explanation, in case I am wrong? Victor |