0
Is my code correct and good enough?
Hey guys this is a mini code for a login system, please tell me how to improve it print("this is a programme for a login page") password = "Anshul21" P1 = input("enter your password") while password == P1: print('wlecome to the home page') if password != P1: print("your paasword is wrong") p2 = input("enter your new password") if password == P1: print("your password is correct") else: print(" your credintail is wrong")
2 Answers
+ 1
Anshul
Why while loop here?
if password == P1 is True
while loop will run continuously.
0
Okay