I think you mean that your output appears like
myuser
mypass
...
instead of
myuser
mypass
You want to strip the newline characters from your readline()
s:
myuser = loginsystem.readline().rstrip()
However, it is probably better practice to use with
so your file handling is properly taken care of.
with open("loginsystem.txt", "r") as loginsystem:
...
Additionally, if you want to read all pairs of usernames and passwords, you can do something like:
from itertools import izip_longest
with open("loginsystem.txt", "r") as loginsystem:
for line1, line2 in izip_longest(*[loginsystem]*2):
username = line1.rstrip()
password = line2.rstrip()
print username, password