Indentation of IF-ELSE block in python

前端 未结 7 1274
青春惊慌失措
青春惊慌失措 2020-12-11 08:48

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 workin

7条回答
  •  醉酒成梦
    2020-12-11 09:28

    Actually this is an Python IDLE UI issue: Once you hit enter after if block finishes, next else statement is already in intent with if statement. No need to provide any tabs or spaces to make indentation. Below is the image for reference.

提交回复
热议问题