Indentation error. "else" can't be indented. Here's what I did to make it work for me:
Code:
n = input("Number? ")
if n < 0:
print "The absolute value of" ,n,"is",-n
else:
print "The absolute value of",n,"is",n
Python is sensitive to indentation. Tell me, are you learning from "
Non-Programmers Tutorial For Python"? I had the identical exercise when studying from this source. Hope this helps.
