Move it on back


#1

Hello,
Currently on "Move it on back" but I do not believe the result is correct even though it is noting completion. When I input a word it does not move the letters or place it all in lowercase.

Console result:

Enter a word: Python
Python
None


pyg = 'ay'

original = raw_input('Enter a word:')

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


#2

you still print original at the end, if you want to see the translation, print new_word instead


#3

Would you want to print the original or the new_word?


#4

i am not sure its wanting, the exercise isn't focusing on print new_word until you placed the first letter at the end, which in the next exercise, original is still left from earlier exercise


#5

When moving to the next lesson it notes that "Well done! However, now we have the first letter showing up both at the beginning and near the end."

I am not seeing that result,


#6

Ah, I believe this was the issue.

Thanks.


#7

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