File's string dont match : <p>here's the problem: i have a file ,,file.txt''.It is compossed by 11 words.
Good.
Now i have the code :</p>

<pre><code>with open('/root/file.txt', 'r') as f:
 data = f.readlines()
 print data[10]
</code></pre>

<p>It outputs :</p>

<pre><code>Password
</code></pre>

<p>But when i enter :</p>

<pre><code>if data[10] == 'Password':
 print 'yes'
else:
 print 'no'
</code></pre>

<p>It outputs:</p>

<pre><code>no
</code></pre>

<p>Can i know why ?I alredy tried to do ,,str(data[10])" but i get the same output : no. How i can do to get the yes answere ?</p>
