I'm getting IndentationError: unexpected indent
even though I wrote the code exactly as shown in the book (http://learnpythonthehardway.org/book/ex25.html)
I'm sure that I'm using exactly 4 spaces to indent the lines which come after "def".
Using Python 2.7 on Windows 7
Here's the error I get in powershell:
PS C:\Users\Kiedis\python> python ex25.py
File "ex25.py", line 3
return sorted(words)
^
IndentationError: unexpected indent
and here's the first 3 lines of my code:
def sort_words(words):
"""Sorts the words"""
return sorted(words)