Search code examples
pythonpython-2.7indentationpythonanywhere

Getting weird indentation errors in python anywhere


Im am using pythonanywhere to run my python code, and i recently got weird indentation error from nowhere. This is how it looks:

https://www.dropbox.com/s/ho26q4gpzd0qvpj/Screen%20Shot%202015-04-05%20at%2014.17.18.png?dl=0

What to do?


Solution

  • Replace all spaces with tabs or vice-versa. Make sure you are consistent!