The code below just print the first user from the outer loop and all the passwords from inner loop. Once the inner is executed once the program exit from the outer loop also.
passfile = open("passfile.txt", "r")
userfile = open("userfile.txt", "r")
for user in userfile:
for password in passfile:
print("user: " + user + " password: " + password)