Indentation of IF-ELSE block in python
问题 Hi I am python newbie and I am working on NLP using python. I am having a error in writing if-else block in python. When I am writing only if block at that time it is working fine: if xyzzy.endswith('l'): print xyzzy after entering colon I am pressing enter and it is automatically taking me to the correct indentation. but when I am trying to add else block to it after pressing "Enter" key after print statement, it is considering it to be statement of IF block only so it is giving me incorrect