How to stop loop when user enters "quit", "end", etc?
<p>This is my code</p>

<pre><code> #!/usr/bin/python3.1$                                                                            
 #Break Statement$                                                                                
 while True:$                                                                                     
    s=(input('enter an string: '))$                                                              
    if s=='Quit,quit,End,end':$                                                                  
        break$                                                                                   
    print('Your string length is',len(s))$                                                       
 print("done")$                                                                                   
</code></pre>

<p>Here my program fails to check the condition....even if it checks it even calculates for the length for 'quit,Quit,End,end' -- any ideas why?</p>
