here's the problem: i have a file ,,file.txt''.It is compossed by 11 words. Good. Now i have the code :
with open('/root/file.txt', 'r') as f:
data = f.readlines()
print data[10]
It outputs :
Password
But when i enter :
if data[10] == 'Password':
print 'yes'
else:
print 'no'
It outputs:
no
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 ?