Python Forum

Full Version: I need some help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[print("You need the password!")
input(Press any button to move on!)

password = ["123456789"]
x = input()
if x in password:
print("The password is correct")
else:
print("The password is incorrect")

what is wrong here ^^^^
i want to make a simple login system..
Please use python tags to preserve indentation. You need to tell us what your expected outcome is suppose to be.
Dont use a list and dont use the in operator?
password = '123456789'
if x == password:
thank you.
Also, you can use getpass function from standard module getpass.