def runUser():
x = raw_input("Enter your username:")
y = raw_input("Enter your password :")
users = [x == "aeduun" and y == "1234", x == "paul" and y == "fifty"]
raw_input("")
if x == users[] and y == users[]:#x == "aeduun" and y == "1234":
print "you are now logged in"
elif x == "Mercuryisle" and y == "shrek":
print "Your account has expired..." \
"You will now bw taken back to the login page"
time.sleep(5)
return runUser()
Here is the code that i have compiled as part of a minor testing project for python 2.7. In this i am attempting to forge a basic login with a list of variables for passcodes and usernames. The function is able to read the relationship between the variables but consists of an error to the reference of different list items. When i launch the program all that occurs is the call for an invalid username is invoked (code not displayed). I would like some advice on how to initialize the indices for the list items in a way to which they will read as part of the if statement.