r/learnpython • u/ChemistryUnusual5324 • Jun 30 '22
help I'm new at python
id = input("enter your password: ") print(id == 369)
Why when I enter 369 in the console it displays false?
0
Upvotes
r/learnpython • u/ChemistryUnusual5324 • Jun 30 '22
id = input("enter your password: ") print(id == 369)
Why when I enter 369 in the console it displays false?
12
u/VeinyAngus Jun 30 '22
Because ID is a string, so in the print you need to put the 369 in quotes