10 lines
No EOL
329 B
Python
10 lines
No EOL
329 B
Python
# Question: Ask the user to enter a password. If they enter “letmein”, display the message “access granted”.
|
|
|
|
# Ask the user to enter the password
|
|
password = input("Enter your password: ").strip()
|
|
|
|
# Check if the password is "letmein"
|
|
if password == "letmein":
|
|
print("Access granted")
|
|
else:
|
|
print("Access denied") |