I cant fetch the next line from a txt file in the python program i want to print all the passwords in my txt file

  file, python, python-3.x, text

x = open(‘pass.txt’) for i in x:
stpos = i.find(‘passwords=’)
atpos = i.find(‘.’},”’, stpos)
password = i[stpos + 21:atpos]
print(password)

Source: Python Questions

LEAVE A COMMENT