Check yourself


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/python-beginner-2W5v7/0/4?curriculum_id=4f89dab3d788890003000096

<In what way does your code behave incorrectly? Include ALL error messages.>

File “python”, line 10
print original
^
IndentationError: expected an indented block
<What do you expect to happen instead?>
runs the code

```python

print ‘Welcome to the Pig Latin Translator!’

raw_input(“Enter a word:”)

original = raw_input

if len(original) > 0 and original.isalpha():
print original
else:
print “empty”

<do not remove the three backticks above>

#2

Look at that error, do you know what it means? Python is saying that it expected you to indent that part of your code. So, review your code, and make sure your code is properly indented :slight_smile:


#3

I tried alot…but it din’t worked


#4

Can you post your new code and format it in Preformatted text? Thanks!


#5

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