I need help with 10/11 ending up


I dont know why its not passing i did exactly what the instruction say!
I tried running it with one equal sign but it shows the same error


pyg = ‘ay’

original = raw_input(‘Enter a word:’)
word = original.lower()
first = word[0]
new_word = word + first + pyg
new_word == [1:len(new_word)]

if len(original) > 0 and original.isalpha():
print original
print ‘empty’

<do not remove the three backticks above>


Hello @hugeheaddavid,
In Python we have = and ==.

= is an assignment operator. It is used to put value to left of a variable. (making connection between a value and an identifier)
x = 10

== is an operator,More preciously a comparison operator that used to check whether two things have same value.

x = 10
y = 20
z = 10

x == z # True
x == y # False


yes but that is not the issue at hand , I tried having just one equal sign and it still didn’t solve anything. Plus it clearly says in the instructions to Set new_word equal to the slice from the 1st index not to assign it to the slice, or hold the slice. I still do not understand how to solve this. will someone please help

                                                                                                                          -Sincerely hugeheaddavid


yes but that is not the issue at hand

It is one of the issue there, The other issue that I overlooked is -
When we slice from sequential data type(List,String etc)…We need three things…

  • Object - From what you will slice
  • Bracket Operator - []
  • Range of slice - from where to where

so Pseudocode should look like this…


Can you find what we are missing there ?


Was having the same problem and I believe I have found the solution!

It should be:

new_word = new_word[1:len(new_word)]

and not:

new_word = [1:len(new_word)]

as in you have set a new variable for which you need to input which of the many variables whose range you wish to select within it.


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