Check Yourself


#1



https://www.codecademy.com/courses/python-beginner-2W5v7/0/4?curriculum_id=4f89dab3d788890003000096#


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


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


#2

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.


#3

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