파이썬 질문이요

qw3709의 이미지

import os
 
password=0;
 
file=open("secret.txt","r")
 
 
 
for i in file:
	print"\n"+i
	for j in range(97,122):
		if i == j:
			password +=chr(j)
			print "find pw: " + password
		if j == 126:
			print "password is %s" %(pw)
 
print (password)
 
 
file.close()

secret파일안에있는 문자열을 찾는 코드인데
찾긴찾는데 출력후 다시 실행시키면 아무것도안뜨네요..
다시띄우려면 어떻게해야하죠??
ex)
>>import seceret
>>secret 1
>>import secert
>> <- 아무것도안뜸