SyntaxFix
Write A Post
Hire A Developer
Questions
You are mixing tabs and spaces.
Find the exact location with:
python -tt yourscript.py
and replace all tabs with spaces. You really want to configure your text editor to only insert spaces for tabs as well.