Check Yourself


Whenever I put in the code I get a " File "python", line 6
IndentationError: unindent does not match any outer indentation level"

This is my code
raw_input("Enter a word:")
original = 'raw_input()'# Start coding here!
if len(original) > 0:
    print original
      print empty


Combine these two lines into a single statement; i.e., move the text prompt phrase into the second line and remove the first line.

Be sure that else lines up with if so they have matching indentation. Very important to have consistent and uniform indentation in Python.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.