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
I've been getting this error even the indentation looked correct.
Viewing in Notepad++ there is an option to see white spaces and Tabs. The error was caused by mixing spaces and tabs to create indentation.
Replacing Tabs with spaces in every line helped to get rid of an error.