Sep-21-2019, 06:47 PM
(This post was last modified: Sep-21-2019, 06:47 PM by NotPythonQueen.)
(Sep-21-2019, 06:41 PM)buran Wrote:(Sep-21-2019, 06:38 PM)NotPythonQueen Wrote: ^^^ This prompts the password, but when I add the moon/star near "if password ==" it does not work.show the exact code that fails...
import getpass thislist = ["Sun", "Moon", "Star"] passwds = 'Sun, Moon, Star' password = input("Please enter a password: ") if password == "Sun" "Moon" "Star" : print("Welcome, Continue on to the Quiz!") else: print("Login failed, Sorry. Please Try Again!") password = input("Please enter a password: ")