Advertisements
Advertisements
प्रश्न
Write a program to input username and password and to check whether the given username and password are correct or not.
कोड लेखन
Advertisements
उत्तर
Compare the entered username and password with the valid username and password.
username = input("Enter username: ")
password = input("Enter password: ")
if username == "admin" and password == "admin123":
print("Username and password are correct")
else:
print("Username or password is incorrect")shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
