I don't see why it only displays wrong it only displays the last line it worked when it used the username and password in the script?
def login():
 for username in range(3):
   username = input("Enter your username:")
   password = input("Enter your password:")
   d="example1"
   k="example2"
   s="school"
   f=open("bob.txt")
   lines=f.readlines()
   if username == lines[0] and password == lines[1]:
        print("welcome to soar valley",d)
        break
    
   if username == lines[2] and password ==lines[3]:
        print("welcome to soar valley",s)
        break
   if username == lines[4] and password ==lines[5]:
        print("welcome to soar valley",k)
        break
   if username or password != lines[0] or lines[1] or lines[2]or lines[3]or
   lines[4] or lines[5]:
        print("wrong try again")
login()
 
     
    