Best excuse for using a dictionary for this is if you are taking the next step and doing a username password combination. This is not the assignment so I don't think I violate rules by posting the code, but here:
import getpass
username = input("Input user name: ")
password = getpass.getpass("Password: ")
thisdict = {
"sport": "football",
"drink": "sprite",
"food": "pizza",
"woodrow": "roosevelt"
}
if username in thisdict:
if thisdict.get(username) == password :
print(f"Welcome {username}")
#playgame()
else:
print(f"Oops {username}, can't find your username/password")
else:
print(f"Oops {username}, can't find your username/password")
By using getpass, the password is entered as a row of stars. It then finds if username is in the dictionary, then checks to see if the password matches (you don't want to approve if the user name and password are in the dictionary but are not linked). You also want to give the same error message if the username is not found or if it is and the password doesn't match. Also note that the username and password are case sensitive.