"is" not working in python IDE but working in command line
<p>I couldn't understand why this is happening actually..</p>

<p>Take a look at this python code :</p>

<pre><code>    word = raw_input("Enter Word")
    length = len(word)

    if word[length-1:] is "e" :
         print word + "d"
</code></pre>

<p>If I give input "love", its output must be "loved". So, when I wrote this in PyScripter IDE, its neither showing error nor the output. But I tried the same code in python shell, its working! </p>

<p>I'd like to know why this is happening.</p>
