[solved]I dont get it: Am I slicing wrong?


#1



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


It types this when I input tesla
Oops, try again. It looks like new_word contains "teslatay" instead of "eslatay"!


The code to say elslatay


Replace this line with your code. 
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
    new_word [1:]
    print new_word
else:
    print 'empty'


#2

Sorry NEVERMIND (oops capslock). I figured it out


#3

I'm having the same error, what do u mean by capslock. My caps lock isnt on


#4

he was talking about when he said NEVERMIND


#5

Yeah right he was...programming can somtimes make 0ne look so dumb. Lol


#6

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