Python issue in while statement
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12090110/python-while-statement-issue">python while statement issue</a>  </p>
</blockquote>



<p>hi guys I have to write a program that reads in multiple lines of text from the user until a blank line. Your program should count whether each line contains the string mega or uber.</p>

<p>Once the user has stopped entering input, print out how many lines contained those words. </p>

<p>Means it should count only uber and mega in lower case so here some example and this is the way I'm propsed to write the code.</p>

<p>I have written something but its not showing as I'm asked to write so can you help me about it.</p>

<p>For example:</p>

<pre><code>Your friend says: That was so mega-awesome!
Your friend says: Radical.
Your friend says: uberlol
Your friend says: 
2 language violation(s)
</code></pre>

<p>And here's an example with no matches:</p>

<pre><code>Your friend says: MEGAAWESOME!
Your friend says: 
0 language violation(s)
</code></pre>

<p>Here is my code so please tell me where i am making the mistake, i'll be really grateful to you.</p>

<pre><code>said = raw_input("Your friend says: ")
i = said.count('mega')
b = said.count('uber')
a = i + b
s = 0
while s == said or a &lt; said:
    if(str(a) in said):
        print a, "language violation(s)"
        s = s + 1
    else:
        said = raw_input("Your friend says: ")    
</code></pre>
