Need help please with ending up


#1

I need help here's the code

pyg = 'ay'

original = raw_input('Enter a word:')
word=original.lower()
first = word[0]
if len(original) > 0 and original.isalpha():
print original
else:
print 'empty'
new_word= word+first+pyg
new_word=new_word[1:len(new_word)]
print(new_word)

please tell me whats wrong because it just tells me

File "python", line 7
print original
^
IndentationError: expected an indented block


#2

there is no indent in your code at all? Could you post an updated version of your code with markup:

So indent will show on the forum


#3

make sure you indent your 'print' commands. Also, '(new_word)' in your last line of code shouldn't be in par.#


#4

I put the following into the script.

pyg = "ay"
original = raw_input("enter a word")
if len(original) > 0 and original.isalpha():
    print original
else:
    print "empty"
word = original.lower()
first = word[0]
new_word = word + first + pyg
finish = [1:len(new_word)]

i am given the error message Your code did not run to end and it points to the colon after the 1 in the console saying invalid syntax.

Please help me out.


#5

look at this code:

example = "hello world"
print example[0:5]

you need to specify the variable you take a slice off, then store it in in new_word, and print it


#9