DEV Community

PERUMAL S
PERUMAL S

Posted on

Task-3 Qsn 10

Write a program that asks the user to enter a password. If the password is correct, print “Access granted”; otherwise, print “Access denied”.

Ans

save_password=input("save your password")
a=input("enter your password :")
if a==save_password:
print("access granted")
else:
print("access denied")

Top comments (0)