if(choice1 == "/login"):
uname = input("Username: ")
pword = input("Password: ")
account = str(uname) + str(pword)
with open("accounts.txt") as acc: #CHECKS IF ACCOUNT IS IN DIRECTORY
info = acc.readlines()
for line in info:
if(account in line):
print("Logged in")
loggedin = True
break
is there any possible way for me to make the "if(account in line):" say, "if(account is exactly the same as in any of the lines here):"?
Try this code below,